use dbmshelper to generate correct boolean value in rql2sql
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Mon, 27 Apr 2009 12:11:33 +0200
changeset 1497 54fc5cc52210
parent 1496 00f7ccd9a08b
child 1522 47b2ffbee760
child 1614 d9d265df05f8
use dbmshelper to generate correct boolean value in rql2sql
server/sources/rql2sql.py
--- a/server/sources/rql2sql.py	Mon Apr 27 10:48:21 2009 +0200
+++ b/server/sources/rql2sql.py	Mon Apr 27 12:11:33 2009 +0200
@@ -952,6 +952,8 @@
             if rel is not None:
                 rel._q_needcast = value
             return self.keyword_map[value]()
+        if constant.type == 'Boolean':
+            value = self.dbms_helper.boolean_value(value)
         if constant.type == 'Substitute':
             _id = constant.value
             if isinstance(_id, unicode):