]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
remove None exception in IN
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 5 Feb 2025 13:37:04 +0000 (08:37 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 5 Feb 2025 19:08:58 +0000 (14:08 -0500)
commitd9d9d5316d28890774c0e66f15276735f1e030b7
tree5f2e41578e1a8e09502187bb82f1d7d00d69769a
parent5e623b989e92a60739714486210cae5d8933db99
remove None exception in IN

Fixed SQL composition bug which impacted caching where using a ``None``
value inside of an ``in_()`` expression would bypass the usual "expanded
bind parameter" logic used by the IN construct, which allows proper caching
to take place.

Fixes: #12314
References: #12312
Change-Id: I0d2fc4e15c73407379ba368dd4ee32660fc66259
(cherry picked from commit 79505b03b61f622615be2d2bc1434671c29b0cc5)
doc/build/changelog/unreleased_20/12314.rst [new file with mode: 0644]
lib/sqlalchemy/sql/coercions.py
test/dialect/mssql/test_compiler.py
test/sql/test_compare.py
test/sql/test_operators.py