]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Dispatch independent ctes on compound select
authorEric Masseran <eric.masseran@gmail.com>
Fri, 6 Aug 2021 08:11:09 +0000 (04:11 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 8 Aug 2021 14:44:14 +0000 (10:44 -0400)
commit770d50092f847ef7e79a895c72a680f7626a1164
tree29ad4d469307d26ee8caf9baed25d4522aaff99e
parentb75630cec9418ef087e7c6af0370ac6ba728a251
Dispatch independent ctes on compound select

Fix issue in :class:`_sql.CTE` where new :meth:`_sql.HasCTE.add_cte` method
added in version 1.4.21 / :ticket:`6752` failed to function correctly for
"compound select" structures such as :func:`_sql.union`,
:func:`_sql.union_all`, :func:`_sql.except`, etc. Pull request courtesy
Eric Masseran.

Fixes: #6752
Closes: #6849
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/6849
Pull-request-sha: 1c4b4d72b2789cf89ff5043ca964ebdd6c9a6617

Change-Id: I49a16a4fc2af8299502011f3a02d8a2ad93255e3
doc/build/changelog/unreleased_14/6752.rst [new file with mode: 0644]
lib/sqlalchemy/sql/compiler.py
test/sql/test_cte.py