Bug #6076 | A colimn name of 'transition_time' causes bin/mysql update to fail | ||
---|---|---|---|
Submitted: | 13 Oct 2004 22:27 | Modified: | 14 Oct 2004 14:11 |
Reporter: | Robert Bankay | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server: Command-line Clients | Severity: | S2 (Serious) |
Version: | 4.0.13 | OS: | Spar Sol 9.4 |
Assigned to: | CPU Architecture: | Any |
[13 Oct 2004 22:27]
Robert Bankay
[14 Oct 2004 14:11]
MySQL Verification Team
Hi, Thank you for the report, but I wasn't able to repeat it using v4.0.22: mysql> select id, transition_time from t1; +----+-----------------+ | id | transition_time | +----+-----------------+ | 1 | 1 | | 2 | 1 | | 3 | 1 | | 4 | 1 | | 5 | 1 | | 6 | 1 | | 7 | 1 | +----+-----------------+ 7 rows in set (0.00 sec) mysql> update t1 set transition_time=id; Query OK, 6 rows affected (0.00 sec) Rows matched: 7 Changed: 6 Warnings: 0 mysql> select id, transition_time from t1; +----+-----------------+ | id | transition_time | +----+-----------------+ | 1 | 1 | | 2 | 2 | | 3 | 3 | | 4 | 4 | | 5 | 5 | | 6 | 6 | | 7 | 7 | +----+-----------------+ 7 rows in set (0.01 sec)
[19 Nov 2004 21:13]
Robert Bankay
FYI Some additional features of this bug: If the transtion_time value is at 2147483647, it can then be updated and set to a value around 1,110,000,000; one can then add to the column and it will update correctly, however if an attempt is made to decrement the value to below 1,100,000,000 then it reverts to 2147483647. Have user alter/modify to change the type to double, the value remains and will do correct arithmetics. THEN using alter/modify and setting the type back to int causes the anomolous behavior to stop. The int column will then update correctly from 2147483647 after the 2 alter/modifies. We plan to upgrade to 4.0.22 next week. Bob Bankay