]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
PostgreSQL now reflects per-column sort order on indexes.
authorEli Collins <elic@assurancetechnologies.com>
Thu, 13 Jun 2019 14:37:16 +0000 (10:37 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 17 Jun 2019 13:03:25 +0000 (09:03 -0400)
commitb4be7ceb86baeb8e1db4de38911a8c9e7acdd532
treea93815dbd227f7c6314c882af142b62140905f51
parente50da587781d9a1fc48c7505e5f6a661155a3b54
PostgreSQL now reflects per-column sort order on indexes.

Added support for column sorting flags when reflecting indexes for
PostgreSQL, including ASC, DESC, NULLSFIRST, NULLSLAST.  Also adds this
facility to the reflection system in general which can be applied to other
dialects in future releases.  Pull request courtesy Eli Collins.

Fixes: #4717
Closes: #4725
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/4725
Pull-request-sha: 3cbb067bd46776fdb125553ba0ac192cb45d060c

Change-Id: I8b0617d68580cfe4ff79d758a077263f33e852c2
doc/build/changelog/unreleased_13/4717.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/engine/reflection.py
test/dialect/postgresql/test_reflection.py