]> 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 20:25:34 +0000 (15:25 -0500)
commitbef67e58121704a9836e1e5ec2d361cd2086036c
tree989ce6bf1aba12926a5a2715acff5fc260eeb598
parent19f13584b07b03a6ee775c197e0e8cda681e9d5a
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
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