From: Greg Sabino Mullane Date: Tue, 8 Apr 2008 14:22:04 +0000 (-0400) Subject: Typo: arg should be db for empty query check. X-Git-Tag: 2.9.0~364 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=93f14a38191f272a313348f4091a3236705e749c;p=check_postgres.git Typo: arg should be db for empty query check. --- diff --git a/check_postgres.pl b/check_postgres.pl index 6ce924f60..9e04145ef 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -757,7 +757,7 @@ sub run_command { $db->{ok} = 1; ## Allow an empty query (no matching rows) if requested - if ($arg->{emptyok} and $arg->{slurp} =~ /^\s*$/o) { + if ($arg->{emptyok} and $db->{slurp} =~ /^\s*$/o) { } ## If we were provided with a regex, check and bail if it fails elsif ($arg->{regex}) {