# HG changeset patch # User Alexandre Fayolle # Date 1260799121 -3600 # Node ID a75a6e77071723093ce485fe91ee0106a6ef24ed # Parent 986fc01be83c3f6ce6cef0955791a523895b6140 Passwords need to be considered as binary fields diff -r 986fc01be83c -r a75a6e770717 server/sources/rql2sql.py --- 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()