From: Matt S Trout Date: Wed, 27 Mar 2019 03:27:31 +0000 (+0000) Subject: switch value defaulting in _in expansion to standard X-Git-Tag: v2.000000~3^2~312 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0770b268dcd28dca9992557826133698dae580d5;p=dbsrgits%2FSQL-Abstract.git switch value defaulting in _in expansion to standard --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index 331daae..0585746 100644 --- a/lib/SQL/Abstract.pm +++ b/lib/SQL/Abstract.pm @@ -1014,8 +1014,7 @@ sub _expand_in { ; puke("Argument passed to the '${\uc($op)}' operator can not be undefined") if !defined($vv); - my @rhs = map $self->_expand_expr($_), - map { ref($_) ? $_ : { -bind => [ $k, $_ ] } } + my @rhs = map $self->expand_expr($_, -value), map { defined($_) ? $_: puke($undef_err) } (ref($vv) eq 'ARRAY' ? @$vv : $vv); return $self->${\($op =~ /^not/ ? 'sqltrue' : 'sqlfalse')} unless @rhs;