Ticket #1624: executemany_arguments.diff
File executemany_arguments.diff, 1.0 KB (added by , 19 years ago) |
---|
-
django/db/backends/util.py
17 17 'time': "%.3f" % (stop - start), 18 18 }) 19 19 20 def executemany(self, sql, param_list ):20 def executemany(self, sql, param_list=[]): 21 21 start = time() 22 22 try: 23 23 return self.cursor.executemany(sql, param_list) -
django/db/backends/mysql/base.py
33 33 self.cursor.execute("SHOW WARNINGS") 34 34 raise Database.Warning, "%s: %s" % (w, self.cursor.fetchall()) 35 35 36 def executemany(self, sql, param_list ):36 def executemany(self, sql, param_list=[]): 37 37 try: 38 38 return self.cursor.executemany(sql, param_list) 39 39 except Database.Warning: