]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Update bindparam cache key
authorFederico Caselli <cfederico87@gmail.com>
Wed, 30 Mar 2022 20:50:18 +0000 (22:50 +0200)
committerFederico Caselli <cfederico87@gmail.com>
Wed, 30 Mar 2022 21:17:31 +0000 (23:17 +0200)
commitb1aaf0a29fdb950ac69964fb9f96dbc03cddd139
treeb79ca47e650bfce99b1768272e64646a0d604637
parentaade1973639517dff06d9f5147c2ec67fc5e3a8d
Update bindparam cache key

The ``literal_execute`` parameter now takes part of the cache
generation of a bindparam, since it changes the sql string generated
by the compiler.
Previously the correct bind values were used, but the ``literal_execute``
would be ignored on subsequent executions of the same query.

Fixes: #7876
Change-Id: I6bf887f1a2fe31f9d0ab68f5b4ff315004d006b2
(cherry picked from commit 429512d55e814b03854bc12ec541dbeee9e3b94e)
doc/build/changelog/unreleased_14/7876.rst [new file with mode: 0644]
lib/sqlalchemy/sql/elements.py
test/sql/test_compare.py