]> granicus.if.org Git - pgbadger/commitdiff
Force the parser to not insert a new line after the SET keyword when the query begin...
authorDarold <gilles@darold.net>
Sun, 30 Dec 2012 18:37:59 +0000 (19:37 +0100)
committerDarold <gilles@darold.net>
Sun, 30 Dec 2012 18:37:59 +0000 (19:37 +0100)
pgbadger

index 1600a3a75b6c7587cd091e1d4f05f1bb8b2f0654..7a9c1e553261ea8b0f0b6ded6542c28896cd43e7 100755 (executable)
--- a/pgbadger
+++ b/pgbadger
@@ -5173,7 +5173,7 @@ sub build_log_line_prefix_regex
                                $self->_back if (!$last and $last ne '(' and $last ne 'FOR');
                                $self->_new_line;
                                $self->_add_token($token);
-                               $self->_new_line if ($self->_next_token and $self->_next_token ne '(' and $self->_next_token ne ';');
+                               $self->_new_line if ((($token ne 'SET') || $last) and $self->_next_token and $self->_next_token ne '(' and $self->_next_token ne ';');
                                $self->_over;
                        }