From: Matt S Trout Date: Mon, 17 Sep 2018 01:33:02 +0000 (+0000) Subject: convert -in to render_expr X-Git-Tag: v2.000000~3^2~465 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0a7639af83c66757087775fef8a0b557915c30d7;p=dbsrgits%2FSQL-Abstract.git convert -in to render_expr --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index bd4648a..a07d89c 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)