server/sources/rql2sql.py
branchstable
changeset 4114 a75a6e770717
parent 3989 8b471739fb33
child 4121 09622a18501c
--- a/server/sources/rql2sql.py	Mon Dec 14 14:57:10 2009 +0100
+++ b/server/sources/rql2sql.py	Mon Dec 14 14:58:41 2009 +0100
@@ -995,7 +995,9 @@
             return self.keyword_map[value]()
         if constant.type == 'Boolean':
             value = self.dbms_helper.boolean_value(value)
-        if constant.type == 'Substitute':
+        elif constant.type == 'Password' or constant.type == 'Bytes':
+            value = self.dbms_helper.binary_value(value)
+        elif constant.type == 'Substitute':
             _id = constant.value
             if isinstance(_id, unicode):
                 _id = _id.encode()