]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Fix QueryContext ref cycle on joinedload
authorCarson Ip <carsonip715@gmail.com>
Fri, 3 Jan 2020 22:09:20 +0000 (17:09 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 4 Jan 2020 18:02:28 +0000 (13:02 -0500)
commit722807c84f107a26569956cbda3eaa4d9a783f7c
tree132db9eff496473a152cfb45b723b5fb25d3d9eb
parentc084911c665d851177424993bbe9258d84ba64f3
Fix QueryContext ref cycle on joinedload

Avoid storing a reference to itself when dealing with create_eager_joins. Also fix a cheating test.

Fixes: #5071
Closes: #5072
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/5072
Pull-request-sha: 75ebaf7c91e96d7567eb5760be713dc134c58763

Change-Id: I511ddc0979b46f7928217347199eca4b1d0b4a49
(cherry picked from commit 5ecb7732fb62d80adb4434bdd0e606e43aa14a98)
doc/build/changelog/unreleased_13/5056.rst
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/orm/strategies.py
test/aaa_profiling/test_memusage.py