]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Compare mappers more accurately in Load._chop_path
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 25 Jun 2018 04:23:54 +0000 (00:23 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 25 Jun 2018 04:26:34 +0000 (00:26 -0400)
commit37a0e2b278bb5dc2e6176d34c85332728fd3fe2c
treeb32b4c5e9deb8a765b747bf7facb693fb0858f7d
parent43dd23f725ee09bad9c4eacea101d57e0624b68b
Compare mappers more accurately in Load._chop_path

Fixed bug in cache key generation for baked queries which could cause a
too-short cache key to be generated for the case of eager loads across
subclasses.  This could in turn cause the eagerload query to be cached in
place of a non-eagerload query, or vice versa, for a polymorhic "selectin"
load, or possibly for lazy loads or selectin loads as well.

Change-Id: I2a69349d3e38814e2c7e6012fc04fbc0e47658a4
Fixes: #4287
(cherry picked from commit 7d2a581a58e9ca4ffbcb39a384ba6950a966de7a)
doc/build/changelog/unreleased_12/4287.rst [new file with mode: 0644]
lib/sqlalchemy/orm/strategy_options.py
test/orm/test_options.py