Re: [dabo-users] Problem with custom sql-statement and getDataSet() with version>0.9.3

Author: Paul McNett

Posted: 2013-05-01 at 20:49:48

On 5/1/13 5:32 PM, Ed Leafe wrote:

> 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

Sorry, I got interrupted while I was typing my message and hit send before I'd said

that this was a preliminary step to digging into the quantize problem. I wanted to

prove to myself that it was still working as it should first.

I'm probably going to have to ask Max to provide me some debug output but I'll review

the thread first in case it's already been presented.

Paul

_______________________________________________

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/5181C63C.1040705@ulmcnett.com

©2013 Paul McNett