I have this source record in a mysql db:
--+------------+-----
| id | total .....
--+------------+-----
| 21594113 | 4.20
--+------------+-----
Then, I import it with datamapper into sqlite3. I get the following
error:
#<BigDecimal:3d565d0,'0.4199999999 999999E1',27(27)>
Total must be a number
The property is declared as:
property :total, Decimal, :precision => 10, :scale => 2, :default
=> 0.0
It's declared in the same manner in the mysql db.
Do you know what I'm doing wrong? or is it some sort of bug with
BigDecimal?
Thanks
--
You received this message because you are subscribed to the Google Groups
"DataMapper" 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/datamapper?hl=en.