From: Matt S Trout Date: Mon, 25 Mar 2019 01:30:03 +0000 (+0000) Subject: _expand_expr hashref is always and X-Git-Tag: v2.000000~3^2~363 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=585b7eab27021926c280e47a9d49f37427e9dc0d;p=dbsrgits%2FSQL-Abstract.git _expand_expr hashref is always and --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index ea587b2..3391319 100644 --- a/lib/SQL/Abstract.pm +++ b/lib/SQL/Abstract.pm @@ -559,8 +559,7 @@ sub _expand_expr { if (ref($expr) eq 'HASH') { return undef unless my $kc = keys %$expr; if ($kc > 1) { - $logic ||= 'and'; - return $self->_expand_andor("-${logic}", $expr); + return $self->_expand_andor(-and => $expr); } my ($key, $value) = %$expr; if ($key =~ /^-/ and $key =~ s/ [_\s]? \d+ $//x ) {