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
This commit is contained in:
parent
bcb7a31b2c
commit
d681b084c3
|
@ -43,7 +43,7 @@ class UnicodeCursorWrapper(object):
|
||||||
return self.cursor.execute(sql, [smart_basestring(p, self.charset) for p in params])
|
return self.cursor.execute(sql, [smart_basestring(p, self.charset) for p in params])
|
||||||
|
|
||||||
def executemany(self, sql, param_list):
|
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)
|
return self.cursor.executemany(sql, new_param_list)
|
||||||
|
|
||||||
def __getattr__(self, attr):
|
def __getattr__(self, attr):
|
||||||
|
|
Loading…
Reference in New Issue