query(SomeSubClass.foo, SomeSubClass.bar).join((some_table, SomeSubClass.foo==some_table.c.bar)) doesn't work

Issue #1431 resolved
Mike Bayer repo owner created an issue

No description provided.

Comments (2)

  1. Mike Bayer reporter

    this bug was actually a lot more severe, and prevented any join from (SubClass.col) from working correctly. It would cause:

    query(SubClass.name).join(Subclass.someentity)
    

    to select from the base table, inconsistently versus plain:

    query(SubClass.name)
    

    this was due to query.join() falling down to onclause.clause_element() - that logic should ultimately be removed since it only serves part of the "reverse join" use case (the part that looks nonsensical). In all other cases an error was raised.

    698a3c1ac665e7cd2ef8d5ad3ebf51b7fe6661f4

  2. Log in to comment