{
where => {
-in => [
- { -tuple => [ 'x', 'y' ] },
- { -tuple => [ 1, 2 ] },
- { -tuple => [ 3, 4 ] },
+ { -row => [ 'x', 'y' ] },
+ { -row => [ 1, 2 ] },
+ { -row => [ 3, 4 ] },
],
},
stmt => ' WHERE (x, y) IN ((?, ?), (?, ?))',
bind => [ 1..4 ],
- test => 'Complex IN',
+ test => 'Complex top-level -in',
},
+ {
+ where => { -is => [ 'bob', undef ] },
+ stmt => ' WHERE bob IS NULL',
+ bind => [],
+ test => 'Top level -is ok',
+ },
+ {
+ where => { -op => [ in => x => 1, 2, 3 ] },
+ stmt => ' WHERE x IN (?, ?, ?)',
+ bind => [ 1, 2, 3 ],
+ test => 'Raw -op passes through correctly'
+ },
+
);
for my $case (@in_between_tests) {