summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/selectable.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2014-07-15 12:25:38 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2014-07-15 12:25:38 -0400
commit3d7b18863813d98c66d76c5fbbba037d1ed18930 (patch)
treec33f34e6b72c208fa429bc03d9b811cfa61bb34a /lib/sqlalchemy/sql/selectable.py
parentf4653729a6ff952555c0192a5b0f0851c4d40ad5 (diff)
downloadsqlalchemy-3d7b18863813d98c66d76c5fbbba037d1ed18930.tar.gz
- 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
Diffstat (limited to 'lib/sqlalchemy/sql/selectable.py')
-rw-r--r--lib/sqlalchemy/sql/selectable.py1
1 files changed, 1 insertions, 0 deletions
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