From 81075bc0294ace7d662a7bd1bd50de9a81d79b9e Mon Sep 17 00:00:00 2001 From: Darold Gilles Date: Fri, 5 Jul 2013 16:07:32 +0200 Subject: [PATCH] Fix an other issue with multiline queries --- pgbadger | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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}) { -- 2.40.0