]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
implement eager_grouping for expression clauselists
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 16 Oct 2023 17:01:42 +0000 (13:01 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 16 Oct 2023 17:01:42 +0000 (13:01 -0400)
commitc1017bc800509870f8594de6bf384a86ed2a3f9a
tree8d3525d67242acf0e85c434c5f50921ea9ef89e3
parentc94ec5f143691c99e3bbfa76945ac382f85bdd48
implement eager_grouping for expression clauselists

the expression clauselist feature added in #7744 failed to accommodate
this parameter that is used only by the PostgreSQL JSON
operators.

Fixed 2.0 regression caused by :ticket:`7744` where chains of expressions
involving PostgreSQL JSON operators combined with other operators such as
string concatenation would lose correct parenthesization, due to an
implementation detail specific to the PostgreSQL dialect.

Fixes: #10479
Change-Id: Ic168bf6afd8bf1cfa648f2bad22fdd7254feaa34
doc/build/changelog/unreleased_20/10479.rst [new file with mode: 0644]
lib/sqlalchemy/sql/compiler.py
test/dialect/postgresql/test_compiler.py
test/sql/test_operators.py