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:
Jacob Kaplan-Moss 2005-07-25 22:15:07 +00:00
parent 5498dbe519
commit 12ffae6df4
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ class FormatStylePlaceholderCursor(Database.Cursor):
return Database.Cursor.execute(self, query, params) return Database.Cursor.execute(self, query, params)
def executemany(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) return Database.Cursor.executemany(self, query, params)
def convert_query(self, query, num_params): def convert_query(self, query, num_params):