[ms] orderby/groupby/having attributes of Select node should be resetted to empty tuple, not None stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 18 Jun 2010 08:14:00 +0200
branchstable
changeset 5784 8b2264e485bc
parent 5783 c5ff8cd74758
child 5785 c0661b963ced
[ms] orderby/groupby/having attributes of Select node should be resetted to empty tuple, not None
server/mssteps.py
--- a/server/mssteps.py	Thu Jun 17 18:50:20 2010 +0200
+++ b/server/mssteps.py	Fri Jun 18 08:14:00 2010 +0200
@@ -21,8 +21,8 @@
 * get data from the parent plan, the latest step, temporary table...
 * each step has is own members (this is not necessarily bad, but a bit messy
   for now)
+"""
 
-"""
 __docformat__ = "restructuredtext en"
 
 from rql.nodes import VariableRef, Variable, Function
@@ -37,11 +37,11 @@
     for select in union.children:
         if keepgroup:
             having, orderby = select.having, select.orderby
-            select.having, select.orderby = None, None
+            select.having, select.orderby = (), ()
             clauses.append( (having, orderby) )
         else:
             groupby, having, orderby = select.groupby, select.having, select.orderby
-            select.groupby, select.having, select.orderby = None, None, None
+            select.groupby, select.having, select.orderby = (), (), ()
             clauses.append( (groupby, having, orderby) )
     return clauses