server/sources/native.py
branchstable
changeset 3958 505025eb0d37
parent 3835 a191b3b9e455
child 3998 94cc7cad3d2d
child 4113 986fc01be83c
equal deleted inserted replaced
3957:4a71754bf5eb 3958:505025eb0d37
   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 = []