[rql2sql] Remove an XXX by explaining why Int non-substitution is desired
(in the current state of the API)
--- 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()