From: Matt S Trout Date: Mon, 18 Mar 2019 04:41:33 +0000 (+0000) Subject: _expand_value X-Git-Tag: v1.90_01~368 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=71f1364b798486b416a3878f0ff21f772791b52b;p=dbsrgits%2FSQL-Abstract.git _expand_value --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index 5aaeee0..b0cc5c4 100644 --- a/lib/SQL/Abstract.pm +++ b/lib/SQL/Abstract.pm @@ -193,7 +193,7 @@ sub new { $opt{expand} = { -ident => '_expand_ident', - -value => sub { +{ -bind => [ our $Cur_Col_Meta, $_[2] ] } }, + -value => '_expand_value', -not => sub { +{ -op => [ 'not', $_[0]->_expand_expr($_[2]) ] } }, -bool => sub { my ($self, undef, $v) = @_; @@ -917,6 +917,10 @@ sub _expand_ident { return +{ -ident => \@parts }; } +sub _expand_value { + +{ -bind => [ our $Cur_Col_Meta, $_[2] ] }; +} + sub _recurse_where { my ($self, $where, $logic) = @_;