diff options
author | Greg Sabino Mullane | 2011-07-04 21:59:24 +0000 |
---|---|---|
committer | Greg Sabino Mullane | 2011-07-04 21:59:24 +0000 |
commit | d8b32795fc8107c2b880b0a93e6cfce1144d4eaf (patch) | |
tree | 554d70828a71493e5fc07c9a82e1ecc4c654994e /check_postgres.pl | |
parent | f64d44f49ac06411a136db1177edbbdd71538495 (diff) |
Various testing fixes.
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-x | check_postgres.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/check_postgres.pl b/check_postgres.pl index 740f635d9..36f04d1aa 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -2336,7 +2336,7 @@ sub run_command { $db->{ok} = 1; ## Unfortunately, psql outputs "(No rows)" even with -t and -x - $db->{slurp} = '' if index($db->{slurp},'(')==0; + $db->{slurp} = '' if ! defined $db->{slurp} or index($db->{slurp},'(')==0; ## Allow an empty query (no matching rows) if requested if ($arg->{emptyok} and $db->{slurp} =~ /^\s*$/o) { |