]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Reflect included columns as dialect_options
authorGord Thompson <gord@gordthompson.com>
Mon, 20 Dec 2021 21:37:13 +0000 (14:37 -0700)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 27 Dec 2021 18:26:42 +0000 (13:26 -0500)
commitdd8e33d84f9d0449c14e51a4e3ffdefdd470f961
tree988f89fd9418e6bf7efbc018b60afac16641f38a
parent5cee5bcc50fe9c284bc556d2f21c9997f3573b35
Reflect included columns as dialect_options

Fixed reflection of covering indexes to report ``include_columns`` as part
of the ``dialect_options`` entry in the reflected index dictionary, thereby
enabling round trips from reflection->create to be complete. Included
columns continue to also be present under the ``include_columns`` key for
backwards compatibility.

Fixes: #7382
Change-Id: I4f16b65caed3a36d405481690a3a92432b5efd62
(cherry picked from commit 52e352a190af750c3c28a5390b2ad55b20d1b752)
doc/build/changelog/unreleased_14/7382.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mssql/base.py
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/testing/suite/test_reflection.py
test/dialect/postgresql/test_reflection.py