diff options
author | Greg Sabino Mullane | 2011-06-21 11:41:22 +0000 |
---|---|---|
committer | Greg Sabino Mullane | 2011-06-21 11:41:22 +0000 |
commit | 7fa987821bdc2b70337fc76229372cb3b2e978f5 (patch) | |
tree | 17bbacb91c3973f882fc6523c226dc915a2e805f /check_postgres.pl | |
parent | 7e67ae7bc427d519c8f8ddeb4ceacd35288f7403 (diff) |
Account for "empty row" -x output (especially in the source of functions).
May fix a recnt bug seen on the list.
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-x | check_postgres.pl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/check_postgres.pl b/check_postgres.pl index f248782cf..438f0f4b7 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -2232,6 +2232,10 @@ sub run_command { elsif ($line =~ /^\s+\| (.+)/) { $stuff[$num]{$lastval} .= "\n$1"; } + ## No content: can happen in the source of functions, for example + elsif ($line =~ /^\s+\|\s+$/) { + $stuff[$num]{$lastval} .= "\n"; + } else { my $msg = msg('no-parse-psql'); warn "$msg\n"; |