From: Matt S Trout Date: Mon, 18 Mar 2019 04:42:32 +0000 (+0000) Subject: move _expand_not to method X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2a23866162facecd987fdd2ad5915ce1c0d508c9;p=scpubgit%2FQ-Branch.git move _expand_not to method --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index b0cc5c4..dd5544f 100644 --- a/lib/SQL/Abstract.pm +++ b/lib/SQL/Abstract.pm @@ -194,7 +194,7 @@ sub new { $opt{expand} = { -ident => '_expand_ident', -value => '_expand_value', - -not => sub { +{ -op => [ 'not', $_[0]->_expand_expr($_[2]) ] } }, + -not => '_expand_not', -bool => sub { my ($self, undef, $v) = @_; if (ref($v)) { @@ -921,6 +921,10 @@ sub _expand_value { +{ -bind => [ our $Cur_Col_Meta, $_[2] ] }; } +sub _expand_not { + +{ -op => [ 'not', $_[0]->_expand_expr($_[2]) ] }; +} + sub _recurse_where { my ($self, $where, $logic) = @_;