From: Justin Hunter Date: Fri, 1 Apr 2011 14:47:29 +0000 (-0700) Subject: fix some pod per RT65556 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1a6f2a0307e8b76ff774d183c676ff56e04121d6;p=scpubgit%2FQ-Branch.git fix some pod per RT65556 --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index e5d07d4..90f326a 100644 --- a/lib/SQL/Abstract.pm +++ b/lib/SQL/Abstract.pm @@ -2075,13 +2075,13 @@ To get an OR instead, you can combine it with the arrayref idea: my %where => ( user => 'nwiger', - priority => [ {'=', 2}, {'!=', 1} ] + priority => [ { '=', 2 }, { '>', 5 } ] ); Which would generate: - $stmt = "WHERE user = ? AND priority = ? OR priority != ?"; - @bind = ('nwiger', '2', '1'); + $stmt = "WHERE ( priority = ? OR priority > ? ) AND user = ?"; + @bind = ('2', '5', 'nwiger'); If you want to include literal SQL (with or without bind values), just use a scalar reference or array reference as the value: