From: Matt S Trout Date: Wed, 10 Apr 2019 00:35:44 +0000 (+0000) Subject: don't re-expand maybe list expr when already list X-Git-Tag: v1.90_01~255 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4d28fcbe086946140e0c96542fad7dd84840d6a9;p=dbsrgits%2FSQL-Abstract.git don't re-expand maybe list expr when already list --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index ec3bc01..f736487 100644 --- a/lib/SQL/Abstract.pm +++ b/lib/SQL/Abstract.pm @@ -1343,6 +1343,7 @@ sub _table { sub _expand_maybe_list_expr { my ($self, $expr, $default) = @_; + return $expr if ref($expr) eq 'HASH' and (($expr->{-op}||[''])->[0] eq ','); return +{ -op => [ ',', map $self->expand_expr($_, $default), ref($expr) eq 'ARRAY' ? @$expr : $expr