Author: russellm
Date: 2010-02-03 01:31:00 -0600 (Wed, 03 Feb 2010)
New Revision: 12378

Modified:
   django/trunk/django/db/backends/postgresql/base.py
Log:
Fixed a regression in the Postgres psycopg cursor handling introduced by 
r12352. Thanks to Kenneth Gonsalves for the report, and Karen for the fix.

Modified: django/trunk/django/db/backends/postgresql/base.py
===================================================================
--- django/trunk/django/db/backends/postgresql/base.py  2010-02-03 00:34:49 UTC 
(rev 12377)
+++ django/trunk/django/db/backends/postgresql/base.py  2010-02-03 07:31:00 UTC 
(rev 12378)
@@ -54,7 +54,7 @@
 
     def execute(self, sql, params=()):
         try:
-            return self.cursor.execute(sql, params)
+            return self.cursor.execute(smart_str(sql, self.charset), 
self.format_params(params))
         except Database.IntegrityError, e:
             raise utils.IntegrityError, utils.IntegrityError(*tuple(e)), 
sys.exc_info()[2]
         except Database.DatabaseError, e:

-- 
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