From 889c011a0f7bce82cea1c9c2ac0c46cec4353d4d Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Tue, 12 Jul 2016 16:53:37 -0400 Subject: 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 --- lib/sqlalchemy/sql/dml.py | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/sqlalchemy/sql') diff --git a/lib/sqlalchemy/sql/dml.py b/lib/sqlalchemy/sql/dml.py index b54b4792d..31e4d3d9c 100644 --- a/lib/sqlalchemy/sql/dml.py +++ b/lib/sqlalchemy/sql/dml.py @@ -32,6 +32,7 @@ class UpdateBase( _hints = util.immutabledict() _parameter_ordering = None _prefixes = () + named_with_column = False def _process_colparams(self, parameters): def process_single(p): -- cgit v1.2.1