Better parsing of output for corner cases.
authorGreg Sabino Mullane <greg@endpoint.com>
Mon, 3 Jan 2011 18:10:26 +0000 (13:10 -0500)
committerGreg Sabino Mullane <greg@endpoint.com>
Mon, 3 Jan 2011 18:10:26 +0000 (13:10 -0500)
check_postgres.pl

index 7089568f1852d2871f3b76dd106953b744b97896..968c1c6bfd4ca15e609509f52367b1f0115ed902 100755 (executable)
@@ -2042,6 +2042,9 @@ sub run_command {
                 elsif ($line =~ /^\s+: (.*)/) {
                     $stuff[$num]{$lastval} .= "\n$1";
                 }
+                elsif ($line =~ /^\s+\| (.+)/) {
+                    $stuff[$num]{$lastval} .= "\n$1";
+                }
                 else {
                     my $msg = msg('no-parse-psql');
                     warn "$msg\n";