summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/postgresql/base.py
diff options
context:
space:
mode:
authorChristoph Zwerschke <cito@online.de>2016-02-09 15:20:51 +0100
committerChristoph Zwerschke <cito@online.de>2016-02-09 15:20:51 +0100
commit29ef0ad7c12d9ac8c27123d945bc4fbd74ba1a3c (patch)
treecfc1801574f81439fe27da7de3a7e7fffbb99c33 /lib/sqlalchemy/dialects/postgresql/base.py
parentc65a805f577d659a2cb169a447b0134c081d500a (diff)
downloadsqlalchemy-pr/234.tar.gz
Make all tests pass with postgresql+pygresqlpr/234
Note that it requires the latest PyGreSQL 5.0 to pass all tests, a warning is printed otherwise. Minor change to test.dialect.postgresql.test_types: - JSON content should not be required to be unicode if the dialect doesn't return unicode (Python 2). Minor change to dialects/postgresql.base: - Return index names properly casted to unicode
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/base.py')
-rw-r--r--lib/sqlalchemy/dialects/postgresql/base.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py
index b16a82e04..25938d44b 100644
--- a/lib/sqlalchemy/dialects/postgresql/base.py
+++ b/lib/sqlalchemy/dialects/postgresql/base.py
@@ -2396,7 +2396,9 @@ class PGDialect(default.DefaultDialect):
i.relname
"""
- t = sql.text(IDX_SQL, typemap={'attname': sqltypes.Unicode})
+ t = sql.text(IDX_SQL, typemap={
+ 'relname': sqltypes.Unicode,
+ 'attname': sqltypes.Unicode})
c = connection.execute(t, table_oid=table_oid)
indexes = defaultdict(lambda: defaultdict(dict))