From: Matt S Trout Date: Mon, 25 Mar 2019 03:20:01 +0000 (+0000) Subject: make scalar/blessed args cleaner X-Git-Tag: v2.000000~3^2~348 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7aeb88e47f1dbdbd108305313d2ba658a095a178;p=dbsrgits%2FSQL-Abstract.git make scalar/blessed args cleaner --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index 918c8c6..c0783c8 100644 --- a/lib/SQL/Abstract.pm +++ b/lib/SQL/Abstract.pm @@ -626,16 +626,14 @@ sub _expand_expr_hashpair_ident { my $ik = $self->_expand_ident(-ident => $k); if (!ref($v) or Scalar::Util::blessed($v)) { my $d = our $Default_Scalar_To; - return +{ - -op => [ - $self->{cmp}, - $ik, - ($d - ? $self->_expand_expr($d => $v) - : { -bind => [ $k, $v ] } - ) - ] - }; + local our $Cur_Col_Meta = $k; + return $self->_expand_expr_hashpair_ident( + $k, + ($d + ? $self->_expand_expr($d => $v) + : { -value => $v } + ) + ); } if (ref($v) eq 'HASH') { if (keys %$v > 1) {