]> 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:23:54 +0000 (00:23 -0400)
commit7d2a581a58e9ca4ffbcb39a384ba6950a966de7a
tree573f88a9def076e53b6a423e56874f036d817643
parent647382b08d64a8b918715670eae7899a5d300325
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
doc/build/changelog/unreleased_12/4287.rst [new file with mode: 0644]
lib/sqlalchemy/orm/strategy_options.py
test/orm/test_options.py