[multi-sources] call doexec rather than sqlexec since we do not want to call process_result (as there aren't any and this breaks with lgdb default)
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 09 Jan 2012 22:40:07 +0100
changeset 8151 8e3fa37cd8aa
parent 8144 9dc024fea040
child 8155 c075950cc929
[multi-sources] call doexec rather than sqlexec since we do not want to call process_result (as there aren't any and this breaks with lgdb default)
server/mssteps.py
--- a/server/mssteps.py	Thu Dec 22 17:46:55 2011 +0100
+++ b/server/mssteps.py	Mon Jan 09 22:40:07 2012 +0100
@@ -159,7 +159,9 @@
         if self.outputtable:
             self.plan.create_temp_table(self.outputtable)
             sql = 'INSERT INTO %s %s' % (self.outputtable, sql)
-        return self.plan.sqlexec(sql, self.plan.args)
+            self.plan.syssource.doexec(self.plan.session, sql, self.plan.args)
+        else:
+            return self.plan.sqlexec(sql, self.plan.args)
 
     def get_sql(self):
         self.inputmap = inputmap = self.children[-1].outputmap