Long integer is transformed when inserted in shorter column, not truncated. Why? What is the formula?
http://dev.mysql.com/doc/refman/5.0/en/integer-types.html The integer overflow will set the max allowed number in the DB as 2147483647 So you need bigint datatype for storing bigger integer