]> 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:36:18 +0000 (23:36 +0200)
commit3ec009eefd126c8623ddd04e94f0297724b2b476
tree9706514a95b2013975a241e4dd2bb76f3c6dd061
parent12b67ae68309e715e3ab1b3d533f5a329dd5b6c6
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
doc/build/changelog/unreleased_14/7876.rst [new file with mode: 0644]
lib/sqlalchemy/sql/elements.py
test/sql/test_compare.py