From: Matt S Trout Date: Mon, 18 Mar 2019 04:41:33 +0000 (+0000) Subject: _expand_value X-Git-Tag: v2.000000~3^2~389 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=21a051b72ef2547b04aab0bb3dd55bd5c93033ef;p=dbsrgits%2FSQL-Abstract.git _expand_value --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index 6e090c4..d20f08e 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) = @_;