]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
deprecate ARRAY.any(), ARRAY.all(), postgresql.Any(), postgresql.All()
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 20 Sep 2025 16:22:48 +0000 (12:22 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 20 Sep 2025 20:39:28 +0000 (16:39 -0400)
commitefd49a19a4a8a7e5468939c92114f6e31328afb6
tree18a3ccb4d8d7bf47eece5e5b7d3cc3bcd910d627
parentaaa85f707e312bbf21b21926b0901aa14e3f3856
deprecate ARRAY.any(), ARRAY.all(), postgresql.Any(), postgresql.All()

The :meth:`_types.ARRAY.Comparator.any` and
:meth:`_types.ARRAY.Comparator.all` methods for the :class:`_types.ARRAY`
type are now deprecated for removal; these two methods along with
:func:`_postgresql.Any` and :func:`_postgresql.All` have been legacy for
some time as they are superseded by the :func:`_sql.any_` and
:func:`_sql.all_` functions, which feature more intutive use.

Fixes: #10821
Change-Id: I8eb3bbcb98af4ee60a21767dc3bdac771cbc0b4c
doc/build/changelog/unreleased_21/10821.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/array.py
lib/sqlalchemy/sql/_elements_constructors.py
lib/sqlalchemy/sql/sqltypes.py
test/dialect/postgresql/test_compiler.py
test/dialect/postgresql/test_types.py
test/sql/test_operators.py
test/sql/test_types.py