Search the MySQL manual:

B.2 Converters

User Comments

Posted by Josh Drew on Wednesday April 23 2003, @6:04am[Delete] [Edit]

The dbf2mysql converter does not handle numeric data very well. All data are stored in MySQL INT attributes. Since numeric fields may be up to 20 characters long, clipping is a dangerous possibility (signed INTs hold -2147683648 - 2147483647; larger values will be stored as 2147483647).

I've written a patch which causes dbf2mysql v1.14 to use the full range of MySQL integer data types (TINYINT, SMALLINT, MEDIUMINT, INT, BIGINT) where appropriate. Please note that a signed BIGINT can only hold -9223372036854775808 - 9223372036854775807. So, values in the range 9223372036854775808 - 99999999999999999999, inclusive, will be stored as (2^63 - 1).

The patch is available at http://www.joshdrew.com

Add your own comment.