]> 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 17:06:51 +0000 (13:06 -0400)
commita58f1b9c698dc7be29d43f2c4c21de8918943f77
tree7a7af81748ea08cea45170594f26446737494d54
parent0eea54e84df104ffe8bc246eb82e4a7a2cf05079
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
doc/build/changelog/unreleased_14/8401.rst [new file with mode: 0644]
lib/sqlalchemy/orm/util.py
test/orm/test_cache_key.py