]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Apply recursive check to immediateloader and generalize
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 9 Apr 2021 14:46:21 +0000 (10:46 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 9 Apr 2021 14:46:21 +0000 (10:46 -0400)
commita4f30de1662c9bc2c79e66b80565aaf8ba18f8c4
tree0ee4f3242c9cb7fcb803f3a67f9932d829a3bdfd
parentd868f7914cd0617d529a6067e8ec7843692f8937
Apply recursive check to immediateloader and generalize

Fixed critical regression caused by the new feature added as part of
:ticket:`1763`, eager loaders are invoked on unexpire operations. The new
feature makes use of the "immediateload" eager loader strategy as a
substitute for a collection loading strategy, which unlike the other
"post-load" strategies was not accommodating for recursive invocations
between mutually-dependent relationships, leading to recursion overflow
errors.

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