diff options
Diffstat (limited to 'lib/sqlalchemy')
-rw-r--r-- | lib/sqlalchemy/orm/query.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sqlalchemy/orm/query.py b/lib/sqlalchemy/orm/query.py index 98e997078..ab49a4dcc 100644 --- a/lib/sqlalchemy/orm/query.py +++ b/lib/sqlalchemy/orm/query.py @@ -2762,6 +2762,7 @@ class Query(Generative): elif prop: # joining to selectable with a mapper property given # as the ON clause + if not right_selectable.is_derived_from( right_mapper.persist_selectable ): |