Permalink
Browse files

fix some pod per RT65556

  • Loading branch information...
1 parent 6d19fbf commit 1a6f2a0307e8b76ff774d183c676ff56e04121d6 @arcanez arcanez committed Apr 1, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/SQL/Abstract.pm
View
@@ -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:

0 comments on commit 1a6f2a0

Please sign in to comment.