]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
properly type array element in any() / all()
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 22 Apr 2022 14:57:00 +0000 (10:57 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 22 Apr 2022 16:53:27 +0000 (12:53 -0400)
commiteb7061ea7d133eb3154a825595ef31df47f1ced2
treed8ee56f541ad6ecfd28677ef012f0984a30c238b
parentf1a409ecdd5f0377b9c00a859ab14e9005e873da
properly type array element in any() / all()

Fixed bug in :class:`.ARRAY` datatype in combination with :class:`.Enum` on
PostgreSQL where using the ``.any()`` method to render SQL ANY(), given
members of the Python enumeration as arguments, would produce a type
adaptation failure on all drivers.

Fixes: #6515
Change-Id: Ia1e3b4e10aaf264ed436ce6030d105fc60023433
(cherry picked from commit d023c8e1c7ad82fb249fab5155eb83dee17a160c)
doc/build/changelog/unreleased_14/6515.rst [new file with mode: 0644]
lib/sqlalchemy/sql/sqltypes.py
test/dialect/postgresql/test_compiler.py
test/dialect/postgresql/test_types.py
test/sql/test_operators.py