[rql2sql] Remove an XXX by explaining why Int non-substitution is desired
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 19 Apr 2013 15:44:42 +0200
changeset 8894 b03abd90a785
parent 8893 eebf286b405e
child 8895 bda63114015c
[rql2sql] Remove an XXX by explaining why Int non-substitution is desired (in the current state of the API)
server/sources/rql2sql.py
--- a/server/sources/rql2sql.py	Fri Apr 19 15:41:56 2013 +0200
+++ b/server/sources/rql2sql.py	Fri Apr 19 15:44:42 2013 +0200
@@ -1506,7 +1506,8 @@
         value = constant.value
         if constant.type == 'etype':
             return value
-        if constant.type == 'Int': # XXX Float?
+        # don't substitute int, causes pb when used as sorting column number
+        if constant.type == 'Int':
             return str(value)
         if constant.type in ('Date', 'Datetime'):
             rel = constant.relation()