Merge 'trunk' into 'arbitrary_op_nesting'
Peter Rabbitson [Sun, 7 Mar 2010 22:42:04 +0000 (22:42 +0000)]
r8568@Thesaurus (orig r8555):  ribasushi | 2010-02-05 17:31:39 +0100
Release 1.61
r8836@Thesaurus (orig r8823):  rabbit | 2010-02-27 00:25:14 +0100
Lose a couple of oddball dependencies (while moronizing the tests a bit)
r8837@Thesaurus (orig r8824):  rabbit | 2010-02-27 00:34:45 +0100
Slightly change the license wording (to satisfy the M::I license guesser) while keeping the former verbosity
r8902@Thesaurus (orig r8889):  semifor | 2010-03-05 17:53:59 +0100
fixed open outer parens in a multi-line literal

r8947@Thesaurus (orig r8934):  rabbit | 2010-03-07 22:51:20 +0100
Factor out insert returning generator

t/02where.t

index 6fe91f8..0790a64 100644 (file)
@@ -309,6 +309,30 @@ my @handle_tests = (
        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;