From: Matt S Trout Date: Fri, 19 Apr 2019 01:56:52 +0000 (+0000) Subject: move multop rendering to join_query_parts X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=77d384f7fa2ab9ef27d34007a30aa16b33f422bc;p=scpubgit%2FQ-Branch.git move multop rendering to join_query_parts --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index c397976..327ddfd 100644 --- a/lib/SQL/Abstract.pm +++ b/lib/SQL/Abstract.pm @@ -1175,9 +1175,9 @@ sub _render_op_andor { sub _render_op_multop { my ($self, $op, $args) = @_; - my @parts = map [ $self->render_aqt($_) ], @$args; + my @parts = @$args; return '' unless @parts; - return @{$parts[0]} if @parts == 1; + return @{[ $self->render_aqt($parts[0])]} if @parts == 1; my $join = ($op eq ',' ? ', ' : ' '.$self->format_keyword($op).' '