equal
deleted
inserted
replaced
349 self.doexec(session, query, self.merge_args(args, query_args)) |
349 self.doexec(session, query, self.merge_args(args, query_args)) |
350 |
350 |
351 def manual_insert(self, results, table, session): |
351 def manual_insert(self, results, table, session): |
352 """insert given result into a temporary table on the system source""" |
352 """insert given result into a temporary table on the system source""" |
353 if server.DEBUG & server.DBG_RQL: |
353 if server.DEBUG & server.DBG_RQL: |
354 print ' manual insertion of', res, 'into', table |
354 print ' manual insertion of', results, 'into', table |
355 if not results: |
355 if not results: |
356 return |
356 return |
357 query_args = ['%%(%s)s' % i for i in xrange(len(results[0]))] |
357 query_args = ['%%(%s)s' % i for i in xrange(len(results[0]))] |
358 query = 'INSERT INTO %s VALUES(%s)' % (table, ','.join(query_args)) |
358 query = 'INSERT INTO %s VALUES(%s)' % (table, ','.join(query_args)) |
359 kwargs_list = [] |
359 kwargs_list = [] |