]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
honor NO_CACHE in lambdas
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 15 Aug 2021 22:12:42 +0000 (18:12 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 17 Aug 2021 18:30:24 +0000 (14:30 -0400)
commit09df554a85ff1f9e35e4275465ba4eca029a61b3
tree8286ebf4bb54e103e10a0be1ebd3cab2152e16b4
parent76b506ed51e31b922014a30de2a5952d1a6ad891
honor NO_CACHE in lambdas

Fixed issue in lambda caching system where an element of a query that
produces no cache key, like a custom option or clause element, would still
populate the expression in the "lambda cache" inappropriately.

This was discovered as part of :ticket:`6887` but is a separate
issue.

References: #6887
Change-Id: I1665f4320254ddc63a0abf3088e9daeaffbd1840
doc/build/changelog/unreleased_14/lmb_no_cache.rst [new file with mode: 0644]
lib/sqlalchemy/sql/lambdas.py
test/sql/test_lambdas.py