From: Darold Gilles Date: Fri, 5 Jul 2013 14:07:32 +0000 (+0200) Subject: Fix an other issue with multiline queries X-Git-Tag: v3.5~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=81075bc0294ace7d662a7bd1bd50de9a81d79b9e;p=pgbadger Fix an other issue with multiline queries --- diff --git a/pgbadger b/pgbadger index dd67af3..cd40206 100755 --- a/pgbadger +++ b/pgbadger @@ -1302,10 +1302,11 @@ sub process_file $cur_info{$cur_pid}{parameters} .= " $t_query"; next; } + if (exists $cur_temp_info{$cur_pid}{query}) { - $cur_temp_info{$cur_pid}{query} .= "\n" . $line; + $cur_temp_info{$cur_pid}{query} .= "\n" . $t_query; } elsif (exists $cur_lock_info{$cur_pid}{query}) { - $cur_lock_info{$cur_pid}{query} .= "\n" . $line; + $cur_lock_info{$cur_pid}{query} .= "\n" . $t_query; } elsif (exists $cur_info{$cur_pid}{statement}) { $cur_info{$cur_pid}{statement} .= "\n" . $t_query; } elsif (exists $cur_info{$cur_pid}{context}) {