]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Use ARRAY type for any_(), all_() coercion
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 20 Sep 2025 18:08:55 +0000 (14:08 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 20 Sep 2025 18:24:48 +0000 (14:24 -0400)
commitaaa85f707e312bbf21b21926b0901aa14e3f3856
tree11da0a5df53dd13694ad0ccf452799663dbdf503
parenta04deb60ac28fa9e2555bb89ffdcd676514ef05d
Use ARRAY type for any_(), all_() coercion

Fixed issue where the :func:`_sql.any_` and :func:`_sql.all_` aggregation
operators would not correctly coerce the datatype of the compared value, in
those cases where the compared value were not a simple int/str etc., such
as a Python ``Enum`` or other custom value.   This would lead to execution
time errors for these values.  This issue is essentially the same as
:ticket:`6515` which was for the now-legacy :meth:`.ARRAY.any` and
:meth:`.ARRAY.all` methods.

Fixes: #12874
Change-Id: I980894c23b9974bc84d584a1a4c5fae72dded6d3
doc/build/changelog/unreleased_20/12874.rst [new file with mode: 0644]
lib/sqlalchemy/sql/elements.py
test/dialect/postgresql/test_types.py
test/sql/test_operators.py