]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
remove warnings for index/unique skipped due to exclude_cols
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 20 Jun 2022 15:06:34 +0000 (11:06 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 20 Jun 2022 15:07:47 +0000 (11:07 -0400)
commit4e2a89c41b0bb423891767d10bdc3cb1b75eaa5e
tree1252ae8b11e230a304fa8bed7fcf6ddf3b012ed3
parent5785b59482498996835dc148fa5f77db36a0705a
remove warnings for index/unique skipped due to exclude_cols

The warnings that are emitted regarding reflection of indexes or unique
constraints, when the :paramref:`.Table.include_columns` parameter is used
to exclude columns that are then found to be part of those constraints,
have been removed. When the :paramref:`.Table.include_columns` parameter is
used it should be expected that the resulting :class:`.Table` construct
will not include constraints that rely upon omitted columns. This change
was made in response to :ticket:`8100` which repaired
:paramref:`.Table.include_columns` in conjunction with foreign key
constraints that rely upon omitted columns, where the use case became
clear that omitting such constraints should be expected.

Fixes: #8102
Change-Id: Id32f628def2d12499cd49d0b436ed345fe49dc6b
doc/build/changelog/unreleased_20/8102.rst [new file with mode: 0644]
lib/sqlalchemy/engine/reflection.py
test/engine/test_reflection.py