From d681b084c30c2cfcf012d42f1a211ea5d719f3c8 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Fri, 29 Dec 2006 19:01:29 +0000 Subject: [PATCH] Fixed #3205 -- Fixed bug in custom postgresql executemany wrapper. Thanks for reporting, jeffreyz@broadpark.no git-svn-id: http://code.djangoproject.com/svn/django/trunk@4257 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/db/backends/postgresql/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/db/backends/postgresql/base.py b/django/db/backends/postgresql/base.py index 20dd1dc2da..054f74a0d3 100644 --- a/django/db/backends/postgresql/base.py +++ b/django/db/backends/postgresql/base.py @@ -43,7 +43,7 @@ class UnicodeCursorWrapper(object): 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):