_expand_value
Matt S Trout [Mon, 18 Mar 2019 04:41:33 +0000 (04:41 +0000)]
lib/SQL/Abstract.pm

index 5aaeee0..b0cc5c4 100644 (file)
@@ -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) = @_;