server/sources/rql2sql.py
branchstable
changeset 3736 07196bda2456
parent 3689 deb13e88e037
child 3752 4c77a1653374
--- a/server/sources/rql2sql.py	Mon Oct 19 14:43:27 2009 +0200
+++ b/server/sources/rql2sql.py	Mon Oct 19 18:36:20 2009 +0200
@@ -107,8 +107,8 @@
                 if rel.optional in ('right', 'both'):
                     var.stinfo['optrelations'].add(newrel)
         # extract subquery solutions
-        solutions = [sol.copy() for sol in solutions]
-        cleanup_solutions(newselect, solutions)
+        mysolutions = [sol.copy() for sol in solutions]
+        cleanup_solutions(newselect, mysolutions)
         newselect.set_possible_types(solutions)
         # full sub-query
         aliases = [VariableRef(select.get_variable(avar.name, i))