]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
support add_cte() for TextualSelect
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 23 Feb 2022 17:50:36 +0000 (12:50 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 23 Feb 2022 21:58:08 +0000 (16:58 -0500)
commit2b72c095732939cc96424bc2b7186d5f1723a1db
tree5b90f14e3978694df11ed64d9bdb152fd369d885
parent7249f9457dae857f06af00ea8efb47cc93f1c7ea
support add_cte() for TextualSelect

Fixed issue where the :meth:`.HasCTE.add_cte` method as called upon a
:class:`.TextualSelect` instance was not being accommodated by the SQL
compiler. The fix additionally adds more "SELECT"-like compiler behavior to
:class:`.TextualSelect` including that DML CTEs such as UPDATE and INSERT
may be accommodated.

Fixes: #7760
Change-Id: Id97062d882e9b2a81b8e31c2bfaa9cfc5f77d5c1
(cherry picked from commit bef67e58121704a9836e1e5ec2d361cd2086036c)
doc/build/changelog/unreleased_14/7760.rst [new file with mode: 0644]
lib/sqlalchemy/orm/context.py
lib/sqlalchemy/sql/compiler.py
test/sql/test_cte.py