Bug #46133 Out of range value
Submitted: 12 Jul 2009 14:51 Modified: 13 Jul 2009 7:54
Reporter: Andrew Jhon Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Server: General Severity:S2 (Serious)
Version:5.0.81 OS:Any
Assigned to: CPU Architecture:Any

[12 Jul 2009 14:51] Andrew Jhon
Description:
root@server [~]# mysql -v
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1016
Server version: 5.0.81-community MySQL Community Edition (GPL)
----
Hello, those are my mysql details.

I think i found a bug in mysql .. when i`m trying to add this value: 2934483647 to a column i get "Warning: #1264 Out of range value adjusted for column 'cybermoney' at row 1"
... and the value 2147483647 will be written ... not 2934483647.
Next, if i`m trying to add again the 2934483647 i get 
Affected rows: 0
Warning: #1264 Out of range value adjusted for column 'cybermoney' at row 1
.... always this errors.
Please advise. thanks.

How to repeat:
I don`t know, if i put any bigger number than 2147483647 .. i got that msg, and the column wont modify
[12 Jul 2009 15:57] Valeriy Kravchuk
Thank you for the problem report. Please, send the results of SHOW CREATE TABLE for the table you are trying to insert data into. Send also the exact INSERT statement used.
[12 Jul 2009 16:42] Andrew Jhon
UPDATE `db_name`.`users` SET `money` = '2934483647' WHERE `users`.`userid` =1 LIMIT 1 ;

Affected rows: 1
Warning: #1264 Out of range value adjusted for column 'money' at row 1
///
any table i`m trying to add that value.. it`s shows me this
the columns has type int(60) .... so should me ok.. there are not more than 60 numbers.. 
but, if i insert 2147483647  .. or lower than this.. everything is ok
[13 Jul 2009 7:54] Sveta Smirnova
Thank you for the feedback.

2147483647 is maximum allowed value for INT column no matter how big *display* width you indicated. So it is expected you get such error. See also http://dev.mysql.com/doc/refman/5.0/en/numeric-types.html