summing Decimal returns float instead of Decimal
Bug #760872 reported by
Matt Haggard
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Storm |
New
|
Undecided
|
Unassigned |
Bug Description
When summing a Decimal, a float is returned instead of a decimal:
store.execute(
where Foo.amount is a Decimal() and the sqlite amount is numeric(12,2)
Also,
store.find(
raises an exception
To post a comment you must log in.
I'm not sure I like the test_select_decimal test I made. It's a little specific -- I mean, shouldn't I test all types, not just the Decimal type with the Sum function?