]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
convert subqueryload paths for multilevel
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 7 Apr 2021 23:22:52 +0000 (19:22 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 8 Apr 2021 00:37:30 +0000 (20:37 -0400)
commitf2521f15809f5ad004be7470c41b73789b082ed2
tree08d9ee3a0e1d3588000cc40a40fbf100aae0390d
parent4d21920638af4729b6ff09b1ac8c3a20878bd922
convert subqueryload paths for multilevel

Fixed regression where the :func:`_orm.subqueryload` loader strategy would
fail to correctly accommodate sub-options, such as a :func:`_orm.defer`
option on a column, if the "path" of the subqueryload were more than one
level deep.

Fixes: #6221
Change-Id: I2addef0be6aaa022fa1b2f20060c4f0769c3bdfb
doc/build/changelog/unreleased_14/6221.rst [new file with mode: 0644]
lib/sqlalchemy/orm/strategies.py
test/orm/test_subquery_relations.py