]> 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>
Sat, 23 Apr 2022 03:29:11 +0000 (23:29 -0400)
commit63191fbef63ebfbf57e7b66bd6529305fc62c605
tree7572c1bdcecbc4e3640e5860c42a8b031f595bce
parentfe2045fb1c767436ed1e32359fe005dabead504a
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
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