From: Matt S Trout Date: Mon, 17 Sep 2018 01:34:00 +0000 (+0000) Subject: switch between to render_expr X-Git-Tag: v1.90_01~443 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e56dd780c0d3fdcff676a4a1c69fba44fa68d40c;p=dbsrgits%2FSQL-Abstract.git switch between to render_expr --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index 46b9499..d5c0587 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