From: Matt S Trout Date: Fri, 19 Apr 2019 01:56:52 +0000 (+0000) Subject: move multop rendering to join_query_parts X-Git-Tag: v2.000000~3^2~193 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f2f322bde892e6d186ba9f1f70436d63ea0f80af;p=dbsrgits%2FSQL-Abstract.git move multop rendering to join_query_parts --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index 36c8210..827f2b3 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).' '