From: Matt S Trout Date: Mon, 17 Sep 2018 01:33:02 +0000 (+0000) Subject: convert -in to render_expr X-Git-Tag: v1.90_01~444 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0ce981f8f5037c368011b0ca98815663fe2d3b19;p=dbsrgits%2FSQL-Abstract.git convert -in to render_expr --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index 3b57536..46b9499 100644 --- a/lib/SQL/Abstract.pm +++ b/lib/SQL/Abstract.pm @@ -1229,13 +1229,11 @@ my %special = ( my ($lhs, $rhs) = @$args; my @in_bind; my @in_sql = map { - local $self->{_nested_func_lhs} = $lhs->{-ident} - if ref($lhs) eq 'HASH' and $lhs->{-ident}; - my ($sql, @bind) = $self->_where_unary_op(%$_); + my ($sql, @bind) = $self->_render_expr($_); push @in_bind, @bind; $sql; } @$rhs; - my ($lhsql, @lbind) = $self->_recurse_where($lhs); + my ($lhsql, @lbind) = $self->_render_expr($lhs); return ( $lhsql.' '.$self->_sqlcase($op).' ( ' .join(', ', @in_sql)