That worked great, thanks for your help. 2009/6/23 Michael Bayer <mike...@zzzcomputing.com>: > > 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)). > > > > > >
-- Dan Jacob Skype: danjac40 Mobile: (++44) (0)7735452075 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---