projects
/
check_postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94d5524
)
Typo: arg should be db for empty query check.
author
Greg Sabino Mullane
<
[email protected]
>
Tue, 8 Apr 2008 14:22:04 +0000
(10:22 -0400)
committer
Greg Sabino Mullane
<
[email protected]
>
Tue, 8 Apr 2008 14:22:04 +0000
(10:22 -0400)
check_postgres.pl
patch
|
blob
|
blame
|
history
diff --git
a/check_postgres.pl
b/check_postgres.pl
index 6ce924f60a47925e11b91067887715ad2dab00f9..9e04145efb93fbd7bb909a0a4288722a2c454928 100755
(executable)
--- 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}) {