From: Mike Bayer Date: Thu, 25 Apr 2013 18:29:48 +0000 (-0400) Subject: we can always adapt to right also. suppose if right X-Git-Tag: rel_0_8_1~3^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1d03569686f9f574765ef90b9251d54d2b935c4;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git we can always adapt to right also. suppose if right were an alias of a table, should add tests for that. --- 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