]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Baked query needs to spoil fully on uncachable option
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 3 May 2020 23:35:54 +0000 (19:35 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 4 May 2020 13:30:12 +0000 (09:30 -0400)
commitdd244758a218201e6b38c44f7a9779a40177742b
treee20433242d08d68a4aaddf9860eacbc131f0fb23
parent00d40775b73cf94fa5d1b765dac1e600e93e172f
Baked query needs to spoil fully on uncachable option

Fixed issue in the area of where loader options such as selectinload()
interact with the baked query system, such that the caching of a query is
not supposed to occur if the loader options themselves have elements such
as with_polymorphic() objects in them that currently are not
cache-compatible.  The baked loader could sometimes not fully invalidate
itself in these some of these scenarios leading to missed eager loads.

Fixes: #5303
Change-Id: Iecf847204a619694d89297f83b63b613ef9767de
doc/build/changelog/unreleased_13/5303.rst [new file with mode: 0644]
lib/sqlalchemy/ext/baked.py
test/ext/test_baked.py
test/orm/test_selectin_relations.py