From: Matt S Trout Date: Mon, 17 Sep 2018 01:34:00 +0000 (+0000) Subject: switch between to render_expr X-Git-Tag: v2.000000~3^2~464 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a890f1447b0c0c98f5e9aca8c0211d629d74a712;p=dbsrgits%2FSQL-Abstract.git switch between to render_expr --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index a07d89c..c2ff3d7 100644 --- a/lib/SQL/Abstract.pm +++ b/lib/SQL/Abstract.pm @@ -1208,14 +1208,12 @@ my %special = ( unless $low->{-literal}; @{$low->{-literal}} } else { - local $self->{_nested_func_lhs} = $left->{-ident} - if ref($left) eq 'HASH' and $left->{-ident}; - my ($l, $h) = map [ $self->_where_unary_op(%$_) ], $low, $high; + my ($l, $h) = map [ $self->_render_expr($_) ], $low, $high; (join(' ', $l->[0], $self->_sqlcase('and'), $h->[0]), @{$l}[1..$#$l], @{$h}[1..$#$h]) } }; - my ($lhsql, @lhbind) = $self->_recurse_where($left); + my ($lhsql, @lhbind) = $self->_render_expr($left); return ( join(' ', '(', $lhsql, $self->_sqlcase($op), $rhsql, ')'), @lhbind, @rhbind