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)
--- 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