From: Darold Date: Sat, 29 Dec 2012 10:11:26 +0000 (+0100) Subject: Add better SQL formatting of update queries by adding a new line after the SET keywor... X-Git-Tag: v3.2~72 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eb23152958bc3c209a05b9178dd3b175789daede;p=pgbadger Add better SQL formatting of update queries by adding a new line after the SET keyword. Thanks to pilat66 for the report. --- diff --git a/pgbadger b/pgbadger index 01958cd..1600a3a 100755 --- 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);