summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Mugtasimov <dmugtasimov@gmail.com>2013-05-28 16:50:12 +0400
committerMike Bayer <mike_mp@zzzcomputing.com>2013-05-29 18:16:39 -0400
commitd02d86a11452b67981e2c9637cedbfc902b237c5 (patch)
tree3fd6c448be6acb099201dfae3182f7d7198ff0b6
parent534e05888e1ec7018c03d979df4f34074a61f12b (diff)
downloadsqlalchemy-d02d86a11452b67981e2c9637cedbfc902b237c5.tar.gz
Unicode support for psycopg2 native hstore implementation
-rw-r--r--lib/sqlalchemy/dialects/postgresql/psycopg2.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/psycopg2.py b/lib/sqlalchemy/dialects/postgresql/psycopg2.py
index ce06aab05..da333e8eb 100644
--- a/lib/sqlalchemy/dialects/postgresql/psycopg2.py
+++ b/lib/sqlalchemy/dialects/postgresql/psycopg2.py
@@ -392,7 +392,8 @@ class PGDialect_psycopg2(PGDialect):
hstore_oids = self._hstore_oids(conn)
if hstore_oids is not None:
oid, array_oid = hstore_oids
- extras.register_hstore(conn, oid=oid, array_oid=array_oid)
+ extras.register_hstore(conn, oid=oid, array_oid=array_oid,
+ unicode=True)
fns.append(on_connect)
if fns: