From 3d7b18863813d98c66d76c5fbbba037d1ed18930 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Tue, 15 Jul 2014 12:25:38 -0400 Subject: - Fixed a SQLite join rewriting issue where a subquery that is embedded as a scalar subquery such as within an IN would receive inappropriate substitutions from the enclosing query, if the same table were present inside the subquery as were in the enclosing query such as in a joined inheritance scenario. fixes #3130 --- lib/sqlalchemy/sql/selectable.py | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/sqlalchemy/sql/selectable.py') diff --git a/lib/sqlalchemy/sql/selectable.py b/lib/sqlalchemy/sql/selectable.py index 0d8162ba3..a57f1ecc3 100644 --- a/lib/sqlalchemy/sql/selectable.py +++ b/lib/sqlalchemy/sql/selectable.py @@ -3050,6 +3050,7 @@ class Select(HasPrefixes, GenerativeSelect): class ScalarSelect(Generative, Grouping): _from_objects = [] + _is_from_container = True def __init__(self, element): self.element = element -- cgit v1.2.1