bug in query.join appeared since 0.5.4p2
Issue #1602
resolved
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)
-
repo owner -
Account Deleted sqlalchemy.sql.functions.count ? (bump)
-
repo owner - changed milestone to 0.5.7
thanks for the test case. 43348d6163959217c6b6d4d0818e3a261a359285 d4c7068440d6840393cd0369f9d3ff880a0c1b8a
-
repo owner - changed status to resolved
weird, somehow the "fixed" didn't get clicked...
-
repo owner - removed milestone
Removing milestone: 0.5.7 (automated comment)
- Log in to comment
can you post an actual test case please, there is no "count()" function in SQLAlchemy