fix buggy assertion stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 09 Oct 2009 10:49:21 +0200
branchstable
changeset 3624 05932c6f7db2
parent 3623 9b838e2d72bb
child 3625 f03b55a18c43
fix buggy assertion
server/msplanner.py
--- a/server/msplanner.py	Thu Oct 08 15:25:09 2009 +0200
+++ b/server/msplanner.py	Fri Oct 09 10:49:21 2009 +0200
@@ -636,7 +636,7 @@
                 sourcesterms[source][term].remove(solindex)
             except KeyError:
                 import rql.base as rqlb
-                assert isinstance(term, rqlb.BaseNode), repr(term)
+                assert isinstance(term, (rqlb.BaseNode, Variable)), repr(term)
                 continue # may occur with subquery column alias
             if not sourcesterms[source][term]:
                 del sourcesterms[source][term]