summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Hollobon <pete@hollobon.com>2015-07-24 12:13:26 +0100
committerPete Hollobon <pete@hollobon.com>2015-07-24 12:13:26 +0100
commita8035cc51eddac98fa97470408346ec607b8ddb6 (patch)
tree462ab7b2b06aeaa76f5025b861ca29e64e7bb1bd
parent552f1f135f66a1a3b9a1a8c3d5e1e6431e4fd234 (diff)
downloadsqlalchemy-pr/190.tar.gz
Don't get reloptions for PostgreSQL versions older than 8.5 when reflecting indexespr/190
reloptions were actually introduced in 8.2; this is really just for Amazon Redshift which is based on PostgreSQL 8.0.2.
-rw-r--r--lib/sqlalchemy/dialects/postgresql/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py
index dc7987d74..d692ae02e 100644
--- a/lib/sqlalchemy/dialects/postgresql/base.py
+++ b/lib/sqlalchemy/dialects/postgresql/base.py
@@ -2641,7 +2641,7 @@ class PGDialect(default.DefaultDialect):
i.relname as relname,
ix.indisunique, ix.indexprs, ix.indpred,
a.attname, a.attnum, NULL, ix.indkey%s,
- i.reloptions, am.amname
+ NULL, am.amname
FROM
pg_class t
join pg_index ix on t.oid = ix.indrelid