fix need intersect detection
authorsylvain.thenault@logilab.fr
Mon, 19 Jan 2009 18:50:18 +0100
changeset 442 b1cf7611f8b3
parent 441 49e4717e2371
child 443 3c0e9c1d645d
fix need intersect detection
server/msplanner.py
--- a/server/msplanner.py	Mon Jan 19 17:28:42 2009 +0100
+++ b/server/msplanner.py	Mon Jan 19 18:50:18 2009 +0100
@@ -999,7 +999,9 @@
             step = AggrStep(plan, selection, select, atemptable, temptable)
             step.children = steps
         elif len(steps) > 1:
-            if select.need_intersect:
+            if select.need_intersect or any(select.need_intersect
+                                            for step in steps
+                                            for select in step.union.children):
                 if temptable:
                     step = IntersectFetchStep(plan)
                 else: