take care to already existant solutions local variable stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 19 Oct 2009 18:36:20 +0200
branchstable
changeset 3736 07196bda2456
parent 3719 7547fe738e54
child 3740 e9ce140c9065
child 3741 3864c7dfddf0
take care to already existant solutions local variable
server/sources/rql2sql.py
--- 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))