cant join to a polymorphic mapper that uses straight joins for select_table; cant use aliased joins because PKs get duped

Issue #933 resolved
Mike Bayer repo owner created an issue

polymorph.py, should be able to map as:

person_join = people.outerjoin(engineers).outerjoin(managers).outerjoin(boss).select(folded_equivalents=True, use_labels=True).alias()

but this incorrectly gen's a composite PK

when this is fixed, mapper should automatically apply .select(folded_equivalents=True, use_labels=True).alias() to all incoming "joins" used for select_table so that we can join to it. test cases in test/orm/inheritance/query.py

Comments (2)

  1. Log in to comment