Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed #3205 -- Fixed bug in custom postgresql executemany wrapper. Th…

…anks for reporting,

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent bcb7a31 commit d681b084c30c2cfcf012d42f1a211ea5d719f3c8 @adrianholovaty adrianholovaty committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/db/backends/postgresql/
2  django/db/backends/postgresql/
@@ -43,7 +43,7 @@ def execute(self, sql, params=()):
return self.cursor.execute(sql, [smart_basestring(p, self.charset) for p in params])
def executemany(self, sql, param_list):
- new_param_list = [[smart_basestring(p, self.charset) for p in params] for params in param_list]
+ new_param_list = [tuple([smart_basestring(p, self.charset) for p in params]) for params in param_list]
return self.cursor.executemany(sql, new_param_list)
def __getattr__(self, attr):

0 comments on commit d681b08

Please sign in to comment.
Something went wrong with that request. Please try again.