Hi.

I permanently receive error message like follows:

2010-11-30 21:59:48 - ERROR - !!! Data Type Mismatch: 
field=lt_total_amount. Expecting: <type 'float'>; got: <class 
'decimal.Decimal'>

It happens when I'm trying to set field value first time,
if cursor wasn't ever requeried.
For filling row with blank values you use dabo.db.getPythonType()
function to detect type.
But for fresh empty cursor you use dCursorMixin._fldTypeFromDB() method 
instead.
Both methods returns different target types for the same source numeric 
"N" type.
First returns Decimal, but second returns float.
It looks like you were unsure what type to use finally.
Could you take conclusive decision, what type to use, please?

-- 
Regards
Jacek Kałucki


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to