]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
consider propagate_to_loaders at application time
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 18 Apr 2024 22:17:21 +0000 (18:17 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 18 Apr 2024 23:22:18 +0000 (19:22 -0400)
commit80399cefa1b16a8548ba0c997a1eda94b8e9db01
tree543f952f1c6d296b641733a77070c0689fb4dd79
parent82803016b5fcbc3225af87a43768dbea2be87582
consider propagate_to_loaders at application time

Fixed regression from 1.4 where using :func:`_orm.defaultload` in
conjunction with a non-propagating loader like :func:`_orm.contains_eager`
would nonetheless propagate the :func:`_orm.contains_eager` to a lazy load
operation, causing incorrect queries as this option is only intended to
come from an original load.

Fixes: #11292
Change-Id: I79928afa108970b523f2166c3190f7952eca73ed
doc/build/changelog/unreleased_20/11292.rst [new file with mode: 0644]
lib/sqlalchemy/orm/strategy_options.py
test/orm/test_default_strategies.py
test/orm/test_options.py
test/profiles.txt