server/sources/rql2sql.py
changeset 7256 ccd44caeb936
parent 7252 adb1673efa5f
child 7257 beea955b45e2
--- a/server/sources/rql2sql.py	Wed Apr 27 09:41:55 2011 +0200
+++ b/server/sources/rql2sql.py	Wed Apr 27 11:37:42 2011 +0200
@@ -1407,6 +1407,8 @@
         if constant.type is None:
             return 'NULL'
         value = constant.value
+        if constant.type == 'etype':
+            return value
         if constant.type == 'Int' and  isinstance(constant.parent, SortTerm):
             return value
         if constant.type in ('Date', 'Datetime'):