]> 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 19:32:39 +0000 (14:32 -0500)
commit5ada58954afa4fa427f4f7a91c683c1210d3d6df
tree983a285274d93bb94d3687fdb502d52470f9197d
parent2bb6cfc7c9b8f09eaa4efeffc337a1162993979c
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
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