]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Improve check for overlapping FK targets on sibling classes
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 3 Oct 2017 00:50:56 +0000 (20:50 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 3 Oct 2017 18:42:49 +0000 (14:42 -0400)
commiteb859dcd2ced86d5ecdcf26cd342de454bc18af8
tree83e0874dcca66f75c7353f83be2cbb2a8544b9a6
parent2a8167f24159644d6a1b0d9efbf60c7b4ff93192
Improve check for overlapping FK targets on sibling classes

Fixed bug where ORM relationship would warn against conflicting sync
targets (e.g. two relationships would both write to the same column) for
sibling classes in an inheritance hierarchy, where the two relationships
would never actually conflict during writes.

Change-Id: I9367a7978cadc59066e89fc4917d7eb6c78dedee
Fixes: #4078
(cherry picked from commit 8ba8dd23b7cbf9aa423b6aa965abc4d7174b84de)
doc/build/changelog/unreleased_11/4078.rst [new file with mode: 0644]
lib/sqlalchemy/orm/relationships.py
test/orm/test_relationships.py