From: Matt S Trout Date: Tue, 26 Mar 2019 00:47:22 +0000 (+0000) Subject: let andor expand the ident hashref case X-Git-Tag: v2.000000~3^2~344 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0c6337ae458eab480a406ad41de558e0073b93b9;p=dbsrgits%2FSQL-Abstract.git let andor expand the ident hashref case --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index b7dab99..b0c33f5 100644 --- a/lib/SQL/Abstract.pm +++ b/lib/SQL/Abstract.pm @@ -644,10 +644,7 @@ sub _expand_expr_hashpair_ident { } if (ref($v) eq 'HASH') { if (keys %$v > 1) { - return $self->_expand_op_andor(-and => [ - map +{ $_ => $v->{$_} }, - sort keys %$v - ], $k); + return $self->_expand_op_andor(-and => $v, $k); } return undef unless keys %$v; my ($vk, $vv) = %$v;