summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/selectable.py
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2018-09-19 09:30:34 -0400
committerGerrit Code Review <gerrit@ci.zzzcomputing.com>2018-09-19 09:30:34 -0400
commit95094d3789a558b310782c27a33b95dddb092dfc (patch)
tree4be48d63f4bac6c52c86c2ef5c77d261c8399734 /lib/sqlalchemy/sql/selectable.py
parent5981e4328193bd760c4e2b28fdb8451f0f55c4ea (diff)
parent43f2c66ea7413cc0aaf6ca040ad33fb65ca4412d (diff)
downloadsqlalchemy-95094d3789a558b310782c27a33b95dddb092dfc.tar.gz
Merge "Adapt right side in join if lateral detected"
Diffstat (limited to 'lib/sqlalchemy/sql/selectable.py')
-rw-r--r--lib/sqlalchemy/sql/selectable.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/selectable.py b/lib/sqlalchemy/sql/selectable.py
index 5b665829b..64886b326 100644
--- a/lib/sqlalchemy/sql/selectable.py
+++ b/lib/sqlalchemy/sql/selectable.py
@@ -338,6 +338,8 @@ class FromClause(Selectable):
_is_select = False
_is_from_container = False
+ _is_lateral = False
+
_textual = False
"""a marker that allows us to easily distinguish a :class:`.TextAsFrom`
or similar object from other kinds of :class:`.FromClause` objects."""
@@ -1329,6 +1331,7 @@ class Lateral(Alias):
"""
__visit_name__ = 'lateral'
+ _is_lateral = True
class TableSample(Alias):
@@ -3008,7 +3011,6 @@ class Select(HasPrefixes, HasSuffixes, GenerativeSelect):
# contents, as this set is used for matching, not rendering.
self._correlate = set(clone(f) for f in
self._correlate).union(self._correlate)
-
# 4. clone other things. The difficulty here is that Column
# objects are not actually cloned, and refer to their original
# .table, resulting in the wrong "from" parent after a clone