Author: phd
Date: Wed Aug 24 11:32:50 2011
New Revision: 4446
Log:
Fixed a bug with Postgres - add quotes in "SET client_encoding" query.
Modified:
SQLObject/branches/1.0/docs/News.txt
SQLObject/branches/1.0/sqlobject/postgres/pgconnection.py
Modified: SQLObject/branches/1.0/docs/News.txt
==============================================================================
--- SQLObject/branches/1.0/docs/News.txt Sun Aug 21 13:32:38 2011 (r4445)
+++ SQLObject/branches/1.0/docs/News.txt Wed Aug 24 11:32:50 2011 (r4446)
@@ -7,6 +7,14 @@
.. _start:
+SQLObject 1.0.3
+===============
+
+* Fixed a bug with Postgres - add quotes in "SET client_encoding" query.
+
+SQLObject 1.0.2
+===============
+
SQLObject 1.0.2
===============
Modified: SQLObject/branches/1.0/sqlobject/postgres/pgconnection.py
==============================================================================
--- SQLObject/branches/1.0/sqlobject/postgres/pgconnection.py Sun Aug 21 13:32:38 2011 (r4445)
+++ SQLObject/branches/1.0/sqlobject/postgres/pgconnection.py Wed Aug 24 11:32:50 2011 (r4446)
@@ -137,7 +137,7 @@
c.execute("SET search_path TO " + self.schema)
dbEncoding = self.dbEncoding
if dbEncoding:
- c.execute("SET client_encoding TO %s" % dbEncoding)
+ c.execute("SET client_encoding TO '%s'" % dbEncoding)
return conn
def _queryInsertID(self, conn, soInstance, id, names, values):
|