server/sources/native.py
changeset 10265 9bdc74142164
parent 10264 d5403de0792b
child 10301 729f36a1bcfa
equal deleted inserted replaced
10264:d5403de0792b 10265:9bdc74142164
   755     def doexecmany(self, cnx, query, args):
   755     def doexecmany(self, cnx, query, args):
   756         """Execute a query.
   756         """Execute a query.
   757         it's a function just so that it shows up in profiling
   757         it's a function just so that it shows up in profiling
   758         """
   758         """
   759         if server.DEBUG & server.DBG_SQL:
   759         if server.DEBUG & server.DBG_SQL:
   760             print 'execmany', query, 'with', len(args), 'arguments'
   760             print 'execmany', query, 'with', len(args), 'arguments', cnx.cnxset.cnx
   761         cursor = cnx.cnxset.cu
   761         cursor = cnx.cnxset.cu
   762         try:
   762         try:
   763             # str(query) to avoid error if it's a unicode string
   763             # str(query) to avoid error if it's a unicode string
   764             cursor.executemany(str(query), args)
   764             cursor.executemany(str(query), args)
   765         except Exception as ex:
   765         except Exception as ex: