Author: Ed Leafe
Posted: 2013-05-01 at 19:32:59
On May 1, 2013, at 6:39 PM, Paul McNett <p@ulmcnett.com> wrote:
> I just wrote some test cases to show that indeed, Dabo does convert float to decimal.
Of course; that's not the question. The question is why it throws an exception in Max's situation:
[snip]
File "/home/max/projekte/kolibrill/dabo/dabo/db/dCursorMixin.py", line
278, in _correctFieldType
return dec.quantize(Decimal("0.%s" % (scale * "0",)))
File "/usr/lib/python2.6/decimal.py", line 2358, in quantize
'quantize result has too many digits for current context')
File "/usr/lib/python2.6/decimal.py", line 3778, in _raise_error
raise error(explanation)
decimal.InvalidOperation: quantize result has too many digits for
current context
-- Ed Leafe
_______________________________________________
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/39064840-83AF-487E-9C6E-24A49C2504E2@leafe.com