Browse files

Fixed a regression in the Postgres psycopg cursor handling introduced…

… by r12352. Thanks to Kenneth Gonsalves for the report, and Karen for the fix.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 8e5c116 commit b740534dc4c68a6b4d30eef96f4d7f70c17c9e0d @freakboy3742 freakboy3742 committed Feb 3, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/db/backends/postgresql/
@@ -54,7 +54,7 @@ def format_params(self, params):
def execute(self, sql, params=()):
- 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:

0 comments on commit b740534

Please sign in to comment.