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;