]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
implement content hashing for custom_op, not identity
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 18 Mar 2023 15:43:47 +0000 (11:43 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 18 Mar 2023 15:51:00 +0000 (11:51 -0400)
commit953f3d9ccad72396f3af81188189795d805ee913
tree33cd2f43da9969d921cf6cb015f8a0a998ef975b
parent73515434c88c73cb81c738ba2ec84953607b9d97
implement content hashing for custom_op, not identity

Fixed critical SQL caching issue where use of the :meth:`_sql.Operators.op`
custom operator function would not produce an appropriate cache key,
leading to reduce the effectiveness of the SQL cache.

Fixes: #9506
Change-Id: I3eab1ddb5e09a811ad717161a59df0884cdf70ed
(cherry picked from commit 0a0c7c73729152b7606509b6e750371106dfdd46)
doc/build/changelog/unreleased_14/9506.rst [new file with mode: 0644]
lib/sqlalchemy/sql/operators.py
lib/sqlalchemy/sql/traversals.py
test/sql/test_compare.py