]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
add an extra load for non-new but unloaded
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 23 Jun 2022 20:43:49 +0000 (16:43 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 20 Jul 2022 14:54:12 +0000 (10:54 -0400)
commit00584a78486b6f80f6308976e3f846961d19deb4
tree9c01bdf42acb8eb4baf259d5bbe54716760bb2c8
parentd5e31d130808c94f09e51e9afb222c4efa63875c
add an extra load for non-new but unloaded

Made an improvement to the "deferred" / "load_only" set of strategy options
where if a certain object is loaded from two different logical paths within
one query, attributes that have been configured by at least one of the
options to be populated will be populated in all cases, even if other load
paths for that same object did not set this option. previously, it was
based on randomness as to which "path" addressed the object first.

Fixes: #8166
Change-Id: I923a1484721d3a04d490ef882bc9fa609c9cd077
doc/build/changelog/unreleased_20/8166.rst [new file with mode: 0644]
lib/sqlalchemy/orm/loading.py
test/orm/test_deferred.py