have func use render_expr
Matt S Trout [Mon, 17 Sep 2018 01:31:02 +0000 (01:31 +0000)]
lib/SQL/Abstract.pm

index e4e921b..3b57536 100644 (file)
@@ -1292,7 +1292,7 @@ sub _where_op_FUNC {
     my @x = @$_;
     push @arg_sql, shift @x;
     @x
-  } map [ $self->_recurse_where($_) ], @args;
+  } map [ $self->_render_expr($_) ], @args;
   return ($self->_sqlcase($func).'('.join(', ', @arg_sql).')', @bind);
 }