]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Test instance for matching class hierarchy on get_from_identity
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 21 Mar 2020 21:26:24 +0000 (17:26 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 22 Mar 2020 15:47:59 +0000 (11:47 -0400)
commitbecab22dcbe9d68b0671a9246e022c9810f7e319
treee9dee7d56ca0509ee08ffde195eb2f0791e9f158
parenta25e2e02e108551d2910171202fd91fdaeb8162c
Test instance for matching class hierarchy on get_from_identity

Fixed issue where a lazyload that uses session-local "get" against a target
many-to-one relationship where an object with the correct primary key is
present, however it's an instance of a sibling class, does not correctly
return None as is the case when the lazy loader actually emits a load for
that row.

Fixes: #5210
Change-Id: I89f9946cfeba61d89a272435f76a5a082b1da30c
doc/build/changelog/unreleased_13/5210.rst [new file with mode: 0644]
lib/sqlalchemy/orm/attributes.py
lib/sqlalchemy/orm/base.py
lib/sqlalchemy/orm/loading.py
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/orm/session.py
lib/sqlalchemy/orm/strategies.py
test/orm/inheritance/test_relationship.py