X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F02where.t;h=204a8fd52ddadac0188cff031271863e004e8501;hb=203af7d68ff6896e3196e3f072caf65b33dfd719;hp=644eca5c8b1ecde7290bec4bcc97f117f993d943;hpb=dd1d0dbf25425dbd05193ec6d5453e9170eb832c;p=dbsrgits%2FSQL-Abstract.git diff --git a/t/02where.t b/t/02where.t index 644eca5..204a8fd 100644 --- a/t/02where.t +++ b/t/02where.t @@ -335,12 +335,12 @@ my @handle_tests = ( # Op against random functions (these two are oracle-specific) { where => { timestamp => { '!=' => { -trunc => { -year => \'sysdate' } } } }, - stmt => " WHERE ( timestamp != TRUNC (YEAR sysdate) )", + stmt => " WHERE ( timestamp != TRUNC(YEAR(sysdate)) )", bind => [], }, { where => { timestamp => { '>=' => { -to_date => '2009-12-21 00:00:00' } } }, - stmt => " WHERE ( timestamp >= TO_DATE ? )", + stmt => " WHERE ( timestamp >= TO_DATE(?) )", bind => ['2009-12-21 00:00:00'], }, @@ -402,7 +402,17 @@ my @handle_tests = ( where => { artistid => {} }, stmt => '', bind => [ ], - } + }, + { + where => [ -and => [ {}, [] ], -or => [ {}, [] ] ], + stmt => '', + bind => [ ], + }, + { + where => { '=' => \'bozz' }, + stmt => 'WHERE = bozz', + bind => [ ], + }, ); for my $case (@handle_tests) {