From e1d03569686f9f574765ef90b9251d54d2b935c4 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Thu, 25 Apr 2013 14:29:48 -0400 Subject: [PATCH] we can always adapt to right also. suppose if right were an alias of a table, should add tests for that. --- lib/sqlalchemy/orm/util.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/sqlalchemy/orm/util.py b/lib/sqlalchemy/orm/util.py index a594af259b..35cb0bdf5d 100644 --- a/lib/sqlalchemy/orm/util.py +++ b/lib/sqlalchemy/orm/util.py @@ -876,11 +876,7 @@ class _ORMJoin(expression.Join): left_orm_info = getattr(left, '_joined_from_info', left_info) right_info = inspection.inspect(right) - - if getattr(right_info, 'is_aliased_class', False): - adapt_to = right_info.selectable - else: - adapt_to = None + adapt_to = right_info.selectable self._joined_from_info = right_info -- 2.47.2