diff options
| author | mike bayer <mike_mp@zzzcomputing.com> | 2021-03-19 01:45:31 +0000 |
|---|---|---|
| committer | Gerrit Code Review <gerrit@ci3.zzzcomputing.com> | 2021-03-19 01:45:31 +0000 |
| commit | ffbced86711812a5cb16038092d3e181f92a1eab (patch) | |
| tree | 17b67cc30061e496a88b0ccc16d5a37095a90832 /lib | |
| parent | d0812a1abf903f6b5f1a0bfb19f8c87a665f8309 (diff) | |
| parent | 2c7eb1f7dd20059ab74081947676a0e3389f3464 (diff) | |
| download | sqlalchemy-ffbced86711812a5cb16038092d3e181f92a1eab.tar.gz | |
Merge "repair legacy_last_joined_entity for no onclause"
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/sqlalchemy/orm/context.py | 2 |
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: |
