fix #615848: undefined 'new' variable was refering to the newly introduced subquery / remove_subquery doesn't take an undefine argument (probable copy/paste from the remove_node call) stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 21 Jan 2010 16:58:40 +0100
branchstable
changeset 4318 8a6356914bd0
parent 4317 b2093f8f0493
child 4331 659ca14ab356
fix #615848: undefined 'new' variable was refering to the newly introduced subquery / remove_subquery doesn't take an undefine argument (probable copy/paste from the remove_node call)
rqlrewrite.py
--- a/rqlrewrite.py	Thu Jan 21 16:52:35 2010 +0100
+++ b/rqlrewrite.py	Thu Jan 21 16:58:40 2010 +0100
@@ -327,7 +327,7 @@
             self.compute_solutions()
         except Unsupported:
             # some solutions have been lost, can't apply this rql expr
-            self.select.remove_subquery(new, undefine=True)
+            self.select.remove_subquery(self.select.with_[-1])
             raise
         return subselect