------------------------------------------------------------
revno: 421
committer: Siegfried-Angel Gevatter Pujals <siegfr...@gevatter.com>
branch nick: bluebird
timestamp: Tue 2012-03-13 19:48:33 +0100
message:
  WhereClause: Add parentheses to make resultant SQL easier to understand.
modified:
  src/where-clause.vala


--
lp:zeitgeist
https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird

Your team Zeitgeist Framework Team is subscribed to branch lp:zeitgeist.
To unsubscribe from this branch go to 
https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird/+edit-subscription
=== modified file 'src/where-clause.vala'
--- src/where-clause.vala	2011-09-19 14:12:03 +0000
+++ src/where-clause.vala	2012-03-13 18:48:33 +0000
@@ -149,7 +149,7 @@
             if (!negation)
                 sql = "%s IN (%s)".printf (column, optimized_glob);
             else
-                sql = "%s NOT IN (%s) OR %s is NULL".printf (column,
+                sql = "(%s NOT IN (%s) OR %s is NULL)".printf (column,
                     optimized_glob, column);
             add_with_array (sql, values);
         }

_______________________________________________
Mailing list: https://launchpad.net/~zeitgeist
Post to     : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp

Reply via email to