diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-05-25 13:45:32 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-05-25 13:45:32 -0400 |
| commit | 95b10c4e8e59cf2509ba5d90a03341d74f93d164 (patch) | |
| tree | bd2723a3f02502ffebb35f538f0ac8477aec3a12 /lib/sqlalchemy | |
| parent | e6cbd88fe17a8ce63078b00293fbe3da2ddf9ea4 (diff) | |
| download | sqlalchemy-95b10c4e8e59cf2509ba5d90a03341d74f93d164.tar.gz | |
- Fixed bug in subquery eager loading where a long chain of
eager loads across a polymorphic-subclass boundary in conjunction
with polymorphic loading would fail to locate the subclass-link in the
chain, erroring out with a missing property name on an
:class:`.AliasedClass`. fixes #3055
Diffstat (limited to 'lib/sqlalchemy')
| -rw-r--r-- | lib/sqlalchemy/orm/strategies.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/strategies.py b/lib/sqlalchemy/orm/strategies.py index 3ebadd62b..c8946a0c0 100644 --- a/lib/sqlalchemy/orm/strategies.py +++ b/lib/sqlalchemy/orm/strategies.py @@ -885,7 +885,7 @@ class SubqueryLoader(AbstractRelationshipLoader): attr = getattr(parent_alias, key).\ of_type(effective_entity) else: - attr = key + attr = getattr(mapper.entity, key) if second_to_last: q = q.join(parent_alias, attr, from_joinpoint=True) |
