]> granicus.if.org Git - pgbadger/commitdiff
Add better SQL formatting of update queries by adding a new line after the SET keywor...
authorDarold <gilles@darold.net>
Sat, 29 Dec 2012 10:11:26 +0000 (11:11 +0100)
committerDarold <gilles@darold.net>
Sat, 29 Dec 2012 10:11:26 +0000 (11:11 +0100)
pgbadger

index 01958cd667f5cf15845cc2b2923ee0b597c90f62..1600a3a75b6c7587cd091e1d4f05f1bb8b2f0654 100755 (executable)
--- a/pgbadger
+++ b/pgbadger
@@ -5169,7 +5169,7 @@ sub build_log_line_prefix_regex
                                $self->{_level} = 0;
                        }
 
-                       elsif ($token =~ /^(?:SELECT|FROM|WHERE|HAVING|BEGIN)$/i) {
+                       elsif ($token =~ /^(?:SELECT|FROM|WHERE|HAVING|BEGIN|SET)$/i) {
                                $self->_back if (!$last and $last ne '(' and $last ne 'FOR');
                                $self->_new_line;
                                $self->_add_token($token);