summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/context.py
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2021-03-19 01:45:31 +0000
committerGerrit Code Review <gerrit@ci3.zzzcomputing.com>2021-03-19 01:45:31 +0000
commitffbced86711812a5cb16038092d3e181f92a1eab (patch)
tree17b67cc30061e496a88b0ccc16d5a37095a90832 /lib/sqlalchemy/orm/context.py
parentd0812a1abf903f6b5f1a0bfb19f8c87a665f8309 (diff)
parent2c7eb1f7dd20059ab74081947676a0e3389f3464 (diff)
downloadsqlalchemy-ffbced86711812a5cb16038092d3e181f92a1eab.tar.gz
Merge "repair legacy_last_joined_entity for no onclause"
Diffstat (limited to 'lib/sqlalchemy/orm/context.py')
-rw-r--r--lib/sqlalchemy/orm/context.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/context.py b/lib/sqlalchemy/orm/context.py
index 9cfa0fdc6..45ab64593 100644
--- a/lib/sqlalchemy/orm/context.py
+++ b/lib/sqlalchemy/orm/context.py
@@ -2136,7 +2136,7 @@ def _legacy_determine_last_joined_entity(setup_joins, entity_zero):
if right is not None and "parententity" in right._annotations:
right = right._annotations["parententity"].entity
- if onclause is not None and right is not None:
+ if right is not None:
last_entity = right
insp = inspect(last_entity)
if insp.is_clause_element or insp.is_aliased_class or insp.is_mapper: