]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Parenthesize for empty not in
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 5 May 2021 12:38:54 +0000 (08:38 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 5 May 2021 13:54:46 +0000 (09:54 -0400)
commit5af854606b6aabb7eb07311572acafe01cc73737
treefdaec23109fa995a84bdcf54d205f3779f76edbf
parent88c0ff61fa07cfa1d9caf24e6ead11851894d098
Parenthesize for empty not in

Fixed regression caused by the "empty in" change just made in
:ticket:`6397` 1.4.12 where the expression needs to be parenthesized for
the "not in" use case, otherwise the condition will interfere with the
other filtering criteria.

also amends StrSQLCompiler to use the newer "empty IN" style for
its compilation process.

Fixes: #6428
Change-Id: I182a552fc0d3065a9e38c0f4ece2deb143735c36
doc/build/changelog/unreleased_14/6428.rst [new file with mode: 0644]
doc/build/core/operators.rst
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/testing/suite/test_select.py
test/sql/test_deprecations.py
test/sql/test_operators.py