server/sources/rql2sql.py
branchstable
changeset 4124 8f2f5f0a89e7
parent 4121 09622a18501c
child 4212 ab6573088b4a
--- 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()