mirror of
https://github.com/django/django.git
synced 2025-09-28 04:54:53 +00:00
Refs #20888 -- Fixed index ordering introspection on PostgreSQL 9.6.
This commit is contained in:
parent
50864b402b
commit
86bb9a0502
1 changed files with 2 additions and 2 deletions
|
@ -207,8 +207,8 @@ class DatabaseIntrospection(BaseDatabaseIntrospection):
|
||||||
WHEN idx.indexprs IS NOT NULL THEN
|
WHEN idx.indexprs IS NOT NULL THEN
|
||||||
pg_get_indexdef(idx.indexrelid)
|
pg_get_indexdef(idx.indexrelid)
|
||||||
END AS exprdef,
|
END AS exprdef,
|
||||||
CASE
|
CASE am.amname
|
||||||
WHEN am.amcanorder THEN
|
WHEN 'btree' THEN
|
||||||
CASE (option & 1)
|
CASE (option & 1)
|
||||||
WHEN 1 THEN 'DESC' ELSE 'ASC'
|
WHEN 1 THEN 'DESC' ELSE 'ASC'
|
||||||
END
|
END
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue