On Mar 22, 2009, at 3:00 PM, Shawn Church wrote:
> > This isn't really the same thing because the float would be rounded > after the sum not line by line. I think I could also use sum(... > type_ = Numeric(14,2)) for the same result. Am I missing an easier > way to do this? its an SQLA bug that will require a workaround until 0.6. another approach is monkeypatching a get_col_spec() on your Numeric type: n = Numeric(14, 2) n.get_col_spec = lambda: "NUMERIC(14, 2)" that will work throughout 0.5. in 0.6 it will not be needed but also have no effect. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
