]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Expand sibling tests for overlaps warning
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 31 Mar 2021 17:16:04 +0000 (13:16 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 31 Mar 2021 17:23:53 +0000 (13:23 -0400)
commitb99f8cad8d290bfa123742eafa9d381cb7644cd1
tree5c5d4f9d4ebaba8e8d1fad7fe4c1d9f34a206693
parent42185a1f3866bfc8ebffa2a6c724face8a2db5dc
Expand sibling tests for overlaps warning

Scaled back the warning message added in :ticket:`5171` to not warn for
overlapping columns in an inheritance scenario where a particular
relationship is local to a subclass and therefore does not represent an
overlap.

Add errors documentation for the warning and also expand
``util.warn()`` to include a code parameter.

Fixes: #6171
Change-Id: Icb1f12d8d645d439ffd2bbb7371c6b00042b6ae3
doc/build/changelog/unreleased_14/6171.rst [new file with mode: 0644]
doc/build/errors.rst
lib/sqlalchemy/orm/relationships.py
lib/sqlalchemy/util/langhelpers.py
test/orm/test_relationships.py