bug in query.join appeared since 0.5.4p2

Issue #1602 resolved
Former user created an issue

session.query(class1.x, class1.y, count()).join(...) fails: AttributeError: 'NoneType' object has no attribute 'base_mapper' i'm 80% sure this used to work on 0.5.4p2

it can be fixed if i do session.query(class1.x, class1.y).join(...).add_column(count())

i can sort of see why this happens, the join() isn't able to determine how to do the join because of the count(), but it used to work and i see no reason why it shouldn't!

ps any eta on 0.5.7? :)

Comments (5)

  1. Mike Bayer repo owner

    can you post an actual test case please, there is no "count()" function in SQLAlchemy

  2. Log in to comment