]> 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 16:58:38 +0000 (12:58 -0400)
commit8ba8dd23b7cbf9aa423b6aa965abc4d7174b84de
tree0079f7c2810461dda81f5aaeeb45824283b16d58
parentb07f8839795adfee40e7d34279242ea1e35dbda8
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
doc/build/changelog/unreleased_11/4078.rst [new file with mode: 0644]
lib/sqlalchemy/orm/relationships.py
test/orm/test_relationships.py