[multi-sources] we should annotate those queries, else there is a chance to get bad sql...
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 08 Jul 2010 15:35:29 +0200
changeset 5943 f1abba8ccc01
parent 5941 f6c890ad4fd4
child 5944 b962dff47c36
[multi-sources] we should annotate those queries, else there is a chance to get bad sql...
server/msplanner.py
--- a/server/msplanner.py	Thu Jul 08 14:52:08 2010 +0200
+++ b/server/msplanner.py	Thu Jul 08 15:35:29 2010 +0200
@@ -1155,6 +1155,7 @@
                 sunion = Union()
                 for select in queries:
                     sunion.append(select)
+                    self.rqlhelper.annotate(select)
                 if temptable:
                     steps.append(FetchStep(plan, sunion, sources, temptable, True, inputmap))
                 else: