From 7c80e521f00a52254678acb7dab632be3e6d0119 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sat, 2 Aug 2014 14:42:57 -0400 Subject: - Fixed bug in CTE where ``literal_binds`` compiler argument would not be always be correctly propagated when one CTE referred to another aliased CTE in a statement. Fixes #3154 --- lib/sqlalchemy/sql/compiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sqlalchemy/sql/compiler.py') diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py index ac45054ae..e45510aa4 100644 --- a/lib/sqlalchemy/sql/compiler.py +++ b/lib/sqlalchemy/sql/compiler.py @@ -1120,7 +1120,7 @@ class SQLCompiler(Compiled): if cte._cte_alias is not None: orig_cte = cte._cte_alias if orig_cte not in self.ctes: - self.visit_cte(orig_cte) + self.visit_cte(orig_cte, **kwargs) cte_alias_name = cte._cte_alias.name if isinstance(cte_alias_name, elements._truncated_label): cte_alias_name = self._truncated_identifier( -- cgit v1.2.1