equal
deleted
inserted
replaced
335 self.doexec(session, query, self.merge_args(args, query_args)) |
335 self.doexec(session, query, self.merge_args(args, query_args)) |
336 |
336 |
337 def manual_insert(self, results, table, session): |
337 def manual_insert(self, results, table, session): |
338 """insert given result into a temporary table on the system source""" |
338 """insert given result into a temporary table on the system source""" |
339 if server.DEBUG & server.DBG_RQL: |
339 if server.DEBUG & server.DBG_RQL: |
340 print ' manual insertion of', res, 'into', table |
340 print ' manual insertion of', results, 'into', table |
341 if not results: |
341 if not results: |
342 return |
342 return |
343 query_args = ['%%(%s)s' % i for i in xrange(len(results[0]))] |
343 query_args = ['%%(%s)s' % i for i in xrange(len(results[0]))] |
344 query = 'INSERT INTO %s VALUES(%s)' % (table, ','.join(query_args)) |
344 query = 'INSERT INTO %s VALUES(%s)' % (table, ','.join(query_args)) |
345 kwargs_list = [] |
345 kwargs_list = [] |