]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
refactor any_ / all_
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 2 Jan 2024 16:16:13 +0000 (11:16 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 2 Jan 2024 20:11:32 +0000 (15:11 -0500)
commitf3ca2350a5d0a34d86ceb934682798438f769e59
tree5d260b6bda0a62ee23509577d983afcb76273c24
parent517b8f4999ba3fc28d54e2d63ed47c37dc9876b8
refactor any_ / all_

Improved compilation of :func:`_sql.any_` / :func:`_sql.all_` in the
context of a negation of boolean comparison, will now render ``NOT (expr)``
rather than reversing the equality operator to not equals, allowing
finer-grained control of negations for these non-typical operators.

Fixes: #10817
Change-Id: If0b324b1220ad3c7f053af91e8a61c81015f312a
doc/build/changelog/unreleased_20/10817.rst [new file with mode: 0644]
lib/sqlalchemy/sql/default_comparator.py
lib/sqlalchemy/sql/elements.py
lib/sqlalchemy/sql/operators.py
lib/sqlalchemy/sql/sqltypes.py
test/sql/test_operators.py