Bug #52484 | Incorrect handling of column types causes fast ALTER TABLE failure on enum types | ||
---|---|---|---|
Submitted: | 30 Mar 2010 17:56 | Modified: | 6 Jul 2010 14:00 |
Reporter: | chris lundberg | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: DDL | Severity: | S2 (Serious) |
Version: | 5.1.45, 5.1.46-bzr | OS: | Any |
Assigned to: | Ramil Kalimullin | CPU Architecture: | Any |
Tags: | ALTER TABLE, column type, enum |
[30 Mar 2010 17:56]
chris lundberg
[30 Mar 2010 18:04]
Valeriy Kravchuk
Thank you for the problem report. Verified just as described with recent 5.1.46 from bzr on Mac OS X: ... mysql> insert into enum_test select * from enum_test; Query OK, 786432 rows affected (2.76 sec) Records: 786432 Duplicates: 0 Warnings: 0 mysql> alter table enum_test modify column t enum('a','b','c'); Query OK, 0 rows affected (0.06 sec) Records: 0 Duplicates: 0 Warnings: 0 mysql> alter table enum_test add column blow_up int(16) first; Query OK, 1572864 rows affected (1.99 sec) Records: 1572864 Duplicates: 0 Warnings: 0 mysql> alter table enum_test modify column t enum('a','b','c','d'); Query OK, 1572864 rows affected (3.21 sec) Records: 1572864 Duplicates: 0 Warnings: 0 mysql> select version(); +--------------+ | version() | +--------------+ | 5.1.46-debug | +--------------+ 1 row in set (0.00 sec)
[2 Apr 2010 16:58]
Omer Barnir
triage: setting tag to SR51MRU
[4 Jun 2010 16:48]
Ramil Kalimullin
I couldn't reproduce the issue using fresh bzr sources. Apparently, the bug has been fixed somehow.
[6 Jul 2010 14:00]
chris lundberg
5.1.48 seems to resolve the issue, although 5.1.46-normal still has the issue.