Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.3.0, 10.1.26, 10.0.32, 10.2.8, 10.0(EOL), 10.1(EOL), 10.2(EOL)
-
None
-
10.0.34
Description
An ALTER TABLE CHANGE and ADD INDEX on auto_increment column fails with "Incorrect key file for table...".
CREATE TABLE t (
|
a bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
c bigint(20) unsigned NOT NULL,
|
PRIMARY KEY (a)
|
) ENGINE=InnoDB ;
|
|
ALTER TABLE t CHANGE a b BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, ADD KEY uk (c);
|
|
ERROR 1034 (HY000): Index for table 't' is corrupt; try to repair it
|
Attachments
Issue Links
- relates to
-
MDEV-9469 'Incorrect key file' on ALTER TABLE
- Closed
-
MDEV-9548 Alter table (renaming and adding index) fails with "Incorrect key file for table"
- Closed
-
MDEV-13625 Merge InnoDB test cases from MySQL 5.6
- Closed
-
MDEV-13626 Merge InnoDB test cases from MySQL 5.7
- Closed
-
MDEV-13668 InnoDB unnecessarily rebuilds table when renaming a column and adding index
- Closed