equal
deleted
inserted
replaced
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: |