Dan wrote: > > Using sqlalchemy version 0.5.2, I've noticed that the "sum" method > seems to have been removed from Query : > > session.query(MyClass).sum(MyClass.price) > > 'Query' object has no attribute 'sum' > > I can't find this change documented anywhere : it was present in 0.4 > as I recall.
looks like we did apply_sum() but not sum(). its redundant. use query.value(func.sum(somecolumn)). --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---
