]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Ensure DML provides named_with_column for CTE(Alias)
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 12 Jul 2016 20:53:37 +0000 (16:53 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 13 Jul 2016 15:49:34 +0000 (11:49 -0400)
commit889c011a0f7bce82cea1c9c2ac0c46cec4353d4d
treee64002939638ab49fd52d7a52ba1197f5a9558dd
parentd80b709ea0a683b10ae46bb552204be59b5c73f8
Ensure DML provides named_with_column for CTE(Alias)

Fixed bug in new CTE feature for update/insert/delete whereby
an anoymous (e.g. no name passed) :class:`.CTE` construct around
the statement would fail.  The Alias base class of CTE checks
for the "named_with_column" attribute in order to detect if
the underlying selectable has a name; UpdateBase now provides
this as False.

Change-Id: I4b0309db21379a4c0cb93085298c86da3cf840e4
Fixes: #3744
doc/build/changelog/changelog_11.rst
lib/sqlalchemy/sql/dml.py
test/sql/test_cte.py