]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Run SelectState from obj normalize ahead of calcing ORM joins
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 17 May 2021 15:20:10 +0000 (11:20 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 17 May 2021 16:26:48 +0000 (12:26 -0400)
commita49b2c3dbb9bff1d004eb2c53a752999e27ff769
tree3190734880c30a52c3fbc7ec92ab4dbd164fe17b
parentc379f80b4e6fb1b65983958116bac202c91a210a
Run SelectState from obj normalize ahead of calcing ORM joins

Fixed regression where the full combination of joined inheritance, global
with_polymorphic, self-referential relationship and joined loading would
fail to be able to produce a query with the scope of lazy loads and object
refresh operations that also attempted to render the joined loader.

Fixes: #6495
Change-Id: If74a744c237069e3a89617498096c18b9b6e5dde
doc/build/changelog/unreleased_14/6495.rst [new file with mode: 0644]
lib/sqlalchemy/orm/context.py
lib/sqlalchemy/orm/strategies.py
lib/sqlalchemy/sql/selectable.py
test/orm/inheritance/test_assorted_poly.py