Author: phd
Date: Wed Aug 24 11:35:44 2011
New Revision: 4447
Log:
Merged revision 4446 from branch 1.0:
fixed a bug with Postgres - add quotes in "SET client_encoding" query.
Modified:
SQLObject/branches/1.1/docs/News.txt
SQLObject/branches/1.1/sqlobject/postgres/pgconnection.py
Modified: SQLObject/branches/1.1/docs/News.txt
==============================================================================
--- SQLObject/branches/1.1/docs/News.txt Wed Aug 24 11:32:50 2011 (r4446)
+++ SQLObject/branches/1.1/docs/News.txt Wed Aug 24 11:35:44 2011 (r4447)
@@ -52,6 +52,11 @@
* All 'mydict.has_key(name)' checks were replaced with 'name in mydict'.
+SQLObject 1.0.3
+===============
+
+* Fixed a bug with Postgres - add quotes in "SET client_encoding" query.
+
SQLObject 1.0.2
===============
Modified: SQLObject/branches/1.1/sqlobject/postgres/pgconnection.py
==============================================================================
--- SQLObject/branches/1.1/sqlobject/postgres/pgconnection.py Wed Aug 24 11:32:50 2011 (r4446)
+++ SQLObject/branches/1.1/sqlobject/postgres/pgconnection.py Wed Aug 24 11:35:44 2011 (r4447)
@@ -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):
|