summaryrefslogtreecommitdiff
path: root/test/orm/inheritance
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2014-01-02 18:26:32 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2014-01-02 18:26:32 -0500
commitca8fca63916897f1bbc2fa4f1ee440c6b5d9a88a (patch)
treefaedf154f7574d302204e0c556a463e9d01bf451 /test/orm/inheritance
parent504543090213db5b9c7cecb27a78b12fa12e9024 (diff)
downloadsqlalchemy-ca8fca63916897f1bbc2fa4f1ee440c6b5d9a88a.tar.gz
- Fixed regression where we apparently still create an implicit
alias when saying query(B).join(B.cs), where "C" is a joined inh class; however, this implicit alias was created only considering the immediate left side, and not a longer chain of joins along different joined-inh subclasses of the same base. As long as we're still implicitly aliasing in this case, the behavior is dialed back a bit so that it will alias the right side in a wider variety of cases. [ticket:2903]
Diffstat (limited to 'test/orm/inheritance')
-rw-r--r--test/orm/inheritance/test_relationship.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/orm/inheritance/test_relationship.py b/test/orm/inheritance/test_relationship.py
index a436ca5fc..5e047cfdb 100644
--- a/test/orm/inheritance/test_relationship.py
+++ b/test/orm/inheritance/test_relationship.py
@@ -154,6 +154,7 @@ class SelfReferentialJ2JTest(fixtures.MappedTest):
managers.c.person_id == engineers.c.reports_to_id,
backref='engineers')})
+
def test_has(self):
m1 = Manager(name='dogbert')
e1 = Engineer(name='dilbert', primary_language='java', reports_to=m1)