]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
loader strategy regression fixes
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 3 May 2021 13:55:12 +0000 (09:55 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 3 May 2021 16:30:19 +0000 (12:30 -0400)
commit216de6e7ceb893200fcde6b158c51180866f4004
tree54b2dd3029426621455196b95eb58557cbf4c5ac
parentee7a82d71783bf71f3a95550624740e908d178a0
loader strategy regression fixes

Fixed regression where using :func:`_orm.selectinload` and
:func:`_orm.subqueryload` to load a two-level-deep path would lead to an
attribute error.

Fixed regression where using the :func:`_orm.noload` loader strategy in
conjunction with a "dynamic" relationship would lead to an attribute error
as the noload strategy would attempt to apply itself to the dynamic loader.

Fixes: #6419
Fixes: #6420
Change-Id: I933b208f16a9723f6ebeab7addbe118903a1f8f5
doc/build/changelog/unreleased_14/6419_6420.rst [new file with mode: 0644]
lib/sqlalchemy/orm/dynamic.py
lib/sqlalchemy/orm/strategies.py
test/orm/test_dynamic.py
test/orm/test_subquery_relations.py