},
{
where => { x => { -in => [ 1, undef ] } },
- stmt => " WHERE ( x IN ( ?, ? ) )",
- bind => [ 1, undef ],
+ stmt => " WHERE ( x IN ( ? ) OR x IS NULL )",
+ bind => [ 1 ],
test => '-in with undef as an element',
},
{
where => { x => { -in => [ 1, undef, 2, 3, undef ] } },
- stmt => " WHERE ( x IN ( ?, ?, ?, ?, ? ) )",
- bind => [ 1, undef, 2, 3, undef ],
+ stmt => " WHERE ( x IN ( ?, ?, ? ) OR x IS NULL )",
+ bind => [ 1, 2, 3 ],
test => '-in with undef as an element',
},
);