From: Matt S Trout Date: Thu, 21 Mar 2019 05:18:26 +0000 (+0000) Subject: switch another case to andor expansion X-Git-Tag: v1.90_01~348 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5ca423851dd883c7d72483b67e78a94fe8fb289a;p=dbsrgits%2FSQL-Abstract.git switch another case to andor expansion --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index 19ac0c5..6fabda2 100644 --- a/lib/SQL/Abstract.pm +++ b/lib/SQL/Abstract.pm @@ -753,11 +753,10 @@ sub _expand_expr_hashpair { : $op =~ $self->{not_like_op} ? belch("Supplying an empty arrayref to '@{[ uc $op]}' is deprecated") && $self->sqltrue : puke "operator '$op' applied on an empty array (field '$k')"; } - return +{ -op => [ - $logic =~ /^-(.*)$/, - map $self->_expand_expr({ $k => { $vk => $_ } }), + return $self->_expand_andor($logic => [ + map +{ $k => { $vk => $_ } }, @values - ] }; + ]); } if ( !defined($vv)