From: Matt S Trout Date: Fri, 15 Feb 2019 21:57:19 +0000 (+0000) Subject: restore exact whitespace because DBIC t/storage/debug.t relies on it X-Git-Tag: v2.000000~3^2~426 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=21acf7723e77f244cfac020898e411dc0ab37a52;p=dbsrgits%2FSQL-Abstract.git restore exact whitespace because DBIC t/storage/debug.t relies on it --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index 54b241d..d4ece74 100644 --- a/lib/SQL/Abstract.pm +++ b/lib/SQL/Abstract.pm @@ -992,7 +992,7 @@ sub _render_op { return (($op eq 'not' ? '('.$final_sql.')' : $final_sql), @bind); } else { my @parts = map [ $self->_render_expr($_) ], @args; - my ($final_sql) = map +($op =~ /^(and|or)$/ ? "(${_})" : $_), join( + my ($final_sql) = map +($op =~ /^(and|or)$/ ? "( ${_} )" : $_), join( ($final_op eq ',' ? '' : ' ').$self->_sqlcase($final_op).' ', map $_->[0], @parts );