Fixed #197 -- thanks for finding that, mmarshall
git-svn-id: http://code.djangoproject.com/svn/django/trunk@309 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
5498dbe519
commit
12ffae6df4
|
@ -56,7 +56,7 @@ class FormatStylePlaceholderCursor(Database.Cursor):
|
|||
return Database.Cursor.execute(self, query, params)
|
||||
|
||||
def executemany(self, query, params=[]):
|
||||
query = self.convert_query(query, len(params))
|
||||
query = self.convert_query(query, len(params[0]))
|
||||
return Database.Cursor.executemany(self, query, params)
|
||||
|
||||
def convert_query(self, query, num_params):
|
||||
|
|
Loading…
Reference in New Issue