]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
dont leak mutating bindparams list into AnalyzedFunction
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 12 Nov 2024 19:50:50 +0000 (14:50 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 13 Nov 2024 16:22:54 +0000 (11:22 -0500)
commit2174426599e68ebef4a1eab7f090de0674c25c82
tree2452623e1fcc4081da7dae5960d6a73af0e0096f
parent641d2b9faf3f24ed2984eec014c1157c45250124
dont leak mutating bindparams list into AnalyzedFunction

Fixed issue in "lambda SQL" feature where the tracking of bound parameters
could be corrupted if the same lambda were evaluated across multiple
compile phases, including when using the same lambda across multiple engine
instances or with statement caching disabled.

Fixes: #12084
Change-Id: I327aa93ce7feb2326a22113164bd834b96b6b889
(cherry picked from commit 5bbefc41b7b2695c95c9c93bcaabd8c4731e348e)
doc/build/changelog/unreleased_20/12084.rst [new file with mode: 0644]
lib/sqlalchemy/sql/lambdas.py
test/sql/test_lambdas.py