Skip to content

Commit 46f712e

Browse files
committed
Do not show db service if it is empty
1 parent ad1f87a commit 46f712e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

check_postgres.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1959,7 +1959,7 @@ sub add_response {
19591959
}
19601960
$same_schema_header .= sprintf "\nDB %s: %s%s%s%s%s",
19611961
$number,
1962-
defined $row->{dbservice} ? qq{dbservice=$row->{dbservice} } : '',
1962+
(defined $row->{dbservice} and length $row->{dbservice}) ? qq{dbservice=$row->{dbservice} } : '',
19631963
defined $row->{port} ? qq{port=$row->{port} } : '',
19641964
defined $row->{host} ? qq{host=$row->{host} } : '',
19651965
defined $row->{dbname} ? qq{dbname=$row->{dbname} } : '',

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy