]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
fill out all distinguising fields for AliasedInsp
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 17 Aug 2022 17:06:51 +0000 (13:06 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 17 Aug 2022 20:53:38 +0000 (16:53 -0400)
commit9cd7cca2c70e87c852af7e570aabdfa7463ce645
treed154772f79fab03b6a601a390e2a1b0523f24ee5
parentb5f25eb99b65925139b099c4e37717969542d108
fill out all distinguising fields for AliasedInsp

Hardened the cache key strategy for the :func:`_orm.aliased` and
:func:`_orm.with_polymorphic` constructs. While no issue involving actual
statements being cached can easily be demonstrated (if at all), these two
constructs were not including enough of what makes them unique in their
cache keys for caching on the aliased construct alone to be accurate.

Fixes: #8401
Change-Id: I13d14985b6965f398edd9494601d8ae89ac641f2
(cherry picked from commit a58f1b9c698dc7be29d43f2c4c21de8918943f77)
doc/build/changelog/unreleased_14/8401.rst [new file with mode: 0644]
lib/sqlalchemy/orm/util.py
test/orm/test_cache_key.py
test/sql/test_resultset.py