'==' => '=',
'!=' => '!=',
# LIKE is always "field LIKE <value>"
- '-like' => 'LIKE',
- '-not_like' => 'NOT LIKE',
+ 'like' => 'LIKE',
+ 'not_like' => 'NOT LIKE',
);
has expr_dispatch_table => (
use strict;
use warnings;
-use Test::More tests => 13;
+use Test::More tests => 14;
use Test::Differences;
use_ok('SQL::Abstract') or BAIL_OUT( "$@" );
],
"NOT IN clause");
+
+
+is $sqla->dispatch(
+ { -type => 'expr',
+ op => 'like',
+ args => [
+ {-type => name => args => [qw/me id/] },
+ { -type => 'value', value => 500 }
+ ]
+ }
+), "me.id LIKE ?",
+ "LIKE expr clause";