diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2006-12-29 19:01:29 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2006-12-29 19:01:29 +0000 |
| commit | d681b084c30c2cfcf012d42f1a211ea5d719f3c8 (patch) | |
| tree | 833c19988b49eefd4673e6f5d2c02439914e25c9 | |
| parent | bcb7a31b2c6ca26906298725cc830bbfb0c4b383 (diff) | |
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
| -rw-r--r-- | django/db/backends/postgresql/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |
