Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…anks for reporting, jeffreyz@broadpark.no

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4257 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit d681b084c30c2cfcf012d42f1a211ea5d719f3c8 1 parent bcb7a31
@adrianholovaty adrianholovaty authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/db/backends/postgresql/base.py
View
2  django/db/backends/postgresql/base.py
@@ -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):
Please sign in to comment.
Something went wrong with that request. Please try again.