[Bast-commits] r8462 - SQL-Abstract/1.x/branches/arbitrary_op_nesting/t

ribasushi at dev.catalyst.perl.org ribasushi at dev.catalyst.perl.org
Thu Jan 28 11:03:20 GMT 2010


Author: ribasushi
Date: 2010-01-28 11:03:20 +0000 (Thu, 28 Jan 2010)
New Revision: 8462

Modified:
   SQL-Abstract/1.x/branches/arbitrary_op_nesting/t/02where.t
Log:
Failing test

Modified: SQL-Abstract/1.x/branches/arbitrary_op_nesting/t/02where.t
===================================================================
--- SQL-Abstract/1.x/branches/arbitrary_op_nesting/t/02where.t	2010-01-28 11:01:52 UTC (rev 8461)
+++ SQL-Abstract/1.x/branches/arbitrary_op_nesting/t/02where.t	2010-01-28 11:03:20 UTC (rev 8462)
@@ -309,6 +309,30 @@
        bind => [1, 2],
    },
 
+# Op against internal function
+   {
+       where => { bool1 => { '=' => { -not_bool => 'bool2' } } },
+       stmt => " WHERE ( bool1 = NOT(bool2) )",
+       bind => [],
+   },
+   {
+       where => { -not_bool => { -not_bool => { -not_bool => 'bool2' } } },
+       stmt => " WHERE ( NOT ( NOT ( NOT bool2 ) ) )",
+       bind => [],
+   },
+
+# Op against random functions (these two are oracle-specific)
+   {
+       where => { timestamp => { '!=' => { -trunk => \'sysdate' } } },
+       stmt => " WHERE ( timestamp != TRUNC(sysdate) )",
+       bind => [],
+   },
+   {
+       where => { timestamp => { '>=' => { -TO_DATE => '2009-12-21 00:00:00' } } },
+       stmt => " WHERE ( timestamp >= TO_DATE(?) )",
+       bind => ['2009-12-21 00:00:00'],
+   },
+
 );
 
 plan tests => ( @handle_tests * 2 ) + 1;




More information about the Bast-commits mailing list