From: Dagfinn Ilmari Mannsåker Date: Mon, 9 Dec 2013 13:57:01 +0000 (+0000) Subject: Fix duplicate tests for { -in => [ undef ] } X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=038b0a7ff074901d04975cb6b00a452aedf06464;p=dbsrgits%2FSQL-Abstract.git Fix duplicate tests for { -in => [ undef ] } --- diff --git a/t/05in_between.t b/t/05in_between.t index 7336158..1c2a8b4 100644 --- a/t/05in_between.t +++ b/t/05in_between.t @@ -174,14 +174,14 @@ my @in_between_tests = ( }, { 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', }, );