return ("$label $op ( $sql )", @bind);
},
+ UNDEF => sub {
+ puke "Argument passed to the '$op' operator can not be undefined";
+ },
+
FALLBACK => sub {
- puke "special op 'in' requires an arrayref (or scalarref/arrayref-ref)";
+ puke "special op $op requires an arrayref (or scalarref/arrayref-ref)";
},
});
stmt_q => 'SELECT * FROM `test` WHERE ( `a` IS NULL AND `b` IS NOT NULL )',
bind => [],
},
+ {
+ func => 'select',
+ args => ['test', '*', { a => { -in => undef } }],
+ exception_like => qr/Argument passed to the 'IN' operator can not be undefined/,
+ },
);
for my $t (@tests) {