From: Peter Rabbitson Date: Fri, 4 Sep 2009 15:19:05 +0000 (+0000) Subject: Release 1.58 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=277b5d3f829c7c42b80f9ea24731e528aa32c632;p=scpubgit%2FQ-Branch.git Release 1.58 --- diff --git a/Changes b/Changes index 1d37352..750d35e 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,14 @@ Revision history for SQL::Abstract +revision 1.58 2009-09-04 15:20 (UTC) +---------------------------- + - expanded the scope of -bool and -not_bool operators + - added proper testing support + +revision 1.57 2009-09-03 20:18 (UTC) +---------------------------- + - added -bool and -not_bool operators + revision 1.56 2009-05-30 16:31 (UTC) ---------------------------- - support for \[$sql, @bind] in order_by clauses e.g.: diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index 3ad246b..06c3534 100644 --- a/lib/SQL/Abstract.pm +++ b/lib/SQL/Abstract.pm @@ -15,7 +15,7 @@ use Scalar::Util qw/blessed/; # GLOBALS #====================================================================== -our $VERSION = '1.56'; +our $VERSION = '1.58'; # This would confuse some packagers #$VERSION = eval $VERSION; # numify for warning-free dev releases @@ -1977,7 +1977,7 @@ example to test the column C being true and the column Would give you: - WHERE is_user AND NOT is_enabledmv + WHERE is_user AND NOT is_enabled diff --git a/t/10test.t b/t/10test.t index 91c9fee..41fbc9d 100644 --- a/t/10test.t +++ b/t/10test.t @@ -145,6 +145,14 @@ my @sql_tests = ( ] }, { + equal => 1, + statements => [ + q/SELECT foo FROM bar WHERE ((NOT a) AND b = 2)/, + q/SELECT foo FROM bar WHERE (NOT a) AND (b = 2)/, + q/SELECT foo FROM bar WHERE (NOT (a)) AND b = 2/, + ], + }, + { equal => 0, statements => [ q/SELECT foo FROM bar WHERE NOT a AND (b = 2)/,