From e46bec586cc99774211ba22370610b565497e58a Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Tue, 23 Sep 2008 10:00:20 -0400 Subject: [PATCH] Catch bad query earlier --- check_postgres.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/check_postgres.pl b/check_postgres.pl index 8859502a4..3e32dcb24 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -2723,7 +2723,9 @@ sub check_txn_time { my $found = 0; for $db (@{$info->{db}}) { - + if (!exists $db->{ok}) { + ndie 'Query failed'; + } if ($db->{slurp} !~ /\w/ and $USERWHERECLAUSE) { add_ok 'T-EXCLUDE-USEROK'; next; -- 2.39.5