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-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=59d02991546a6c57b9e16dce76afa69a6e9abc16;p=scpubgit%2FQ-Branch.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 7fa702c..5bf2297 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 );