Author: adrian
Date: 2006-12-29 13:01:29 -0600 (Fri, 29 Dec 2006)
New Revision: 4257

Modified:
  django/trunk/django/db/backends/postgresql/base.py
Log:
Fixed #3205 -- Fixed bug in custom postgresql executemany wrapper. Thanks for 
reporting, [EMAIL PROTECTED]

Modified: django/trunk/django/db/backends/postgresql/base.py
===================================================================
--- django/trunk/django/db/backends/postgresql/base.py  2006-12-29 03:15:37 UTC 
(rev 4256)
+++ django/trunk/django/db/backends/postgresql/base.py  2006-12-29 19:01:29 UTC 
(rev 4257)
@@ -43,7 +43,7 @@
        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):


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django 
updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to