server/sources/native.py
changeset 3998 94cc7cad3d2d
parent 3890 d7a270f50f54
parent 3958 505025eb0d37
child 4181 c79135c217df
equal deleted inserted replaced
3895:92ead039d3d0 3998:94cc7cad3d2d
   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 = []