From 7fa987821bdc2b70337fc76229372cb3b2e978f5 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Tue, 21 Jun 2011 07:41:22 -0400 Subject: [PATCH] Account for "empty row" -x output (especially in the source of functions). May fix a recnt bug seen on the list. --- check_postgres.pl | 4 ++++ 1 file changed, 4 insertions(+) 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"; -- 2.30.2