diff options
author | François Freitag <francois.freitag@gmail.com> | 2016-10-17 04:16:13 -0700 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2016-10-17 07:16:13 -0400 |
commit | 86bb9a05020b8fadaab26f4f796c3c4d9adb8c5c (patch) | |
tree | 175e3c667a4d3c5b8bfc73298cc50a83c5257442 /django/db/backends/postgresql/introspection.py | |
parent | 50864b402b4dde26af05e2b0afa5c2e949b6a6b9 (diff) | |
download | django-86bb9a05020b8fadaab26f4f796c3c4d9adb8c5c.tar.gz |
Refs #20888 -- Fixed index ordering introspection on PostgreSQL 9.6.
Diffstat (limited to 'django/db/backends/postgresql/introspection.py')
-rw-r--r-- | django/db/backends/postgresql/introspection.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/db/backends/postgresql/introspection.py b/django/db/backends/postgresql/introspection.py index 24bd45c1da..99c1fe91ee 100644 --- a/django/db/backends/postgresql/introspection.py +++ b/django/db/backends/postgresql/introspection.py @@ -207,8 +207,8 @@ class DatabaseIntrospection(BaseDatabaseIntrospection): WHEN idx.indexprs IS NOT NULL THEN pg_get_indexdef(idx.indexrelid) END AS exprdef, - CASE - WHEN am.amcanorder THEN + CASE am.amname + WHEN 'btree' THEN CASE (option & 1) WHEN 1 THEN 'DESC' ELSE 'ASC' END |