diff -r 09622a18501c -r 8f2f5f0a89e7 server/sources/rql2sql.py --- a/server/sources/rql2sql.py Tue Dec 15 12:24:38 2009 +0100 +++ b/server/sources/rql2sql.py Wed Dec 16 09:11:00 2009 +0100 @@ -995,6 +995,7 @@ 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): _id = _id.encode()