]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
apply self_group to all elements of multi-expression
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 9 Feb 2023 20:36:38 +0000 (15:36 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 9 Feb 2023 21:45:14 +0000 (16:45 -0500)
commit6971ba97247928c9a79f532001278d0e1d5845fc
tree2ab9961ca54035b675e355a5bb539f5dfb612a64
parent13d3b2c291f49525bc38d082d1c2abe9e03bd3fe
apply self_group to all elements of multi-expression

Fixed critical regression in SQL expression formulation in the 2.0 series
due to :ticket:`7744` which improved support for SQL expressions that
contained many elements against the same operator repeatedly; parenthesis
grouping would be lost with expression elements beyond the first two
elements.

Fixes: #9271
Change-Id: Ib6ed5b71efe0f6816dab75bda622297fc89e3b49
doc/build/changelog/unreleased_20/9271.rst [new file with mode: 0644]
lib/sqlalchemy/sql/elements.py
test/sql/test_operators.py