Ticket #1624: executemany_arguments.2.diff
File executemany_arguments.2.diff, 1.6 KB (added by , 19 years ago) |
---|
-
django/db/backends/sqlite3/base.py
70 70 return Database.Cursor.execute(self, query, params) 71 71 72 72 def executemany(self, query, params=[]): 73 query = self.convert_query(query, len(params [0]))73 query = self.convert_query(query, len(params)) 74 74 return Database.Cursor.executemany(self, query, params) 75 75 76 76 def convert_query(self, query, num_params): -
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: