Skip to content

Commit 9472263

Browse files
committed
Merge from mysql-5.6 to mysql-trunk
2 parents a6661b8 + 425e262 commit 9472263

30 files changed

+236
-112
lines changed

mysql-test/extra/rpl_tests/rpl_loaddata.test

+5-5
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ save_master_pos;
7070
connection slave;
7171
# 1062 = ER_DUP_ENTRY
7272
call mtr.add_suppression("Slave SQL.*Error .Duplicate entry .10. for key .b.. on query.* Error_code: 1062");
73-
call mtr.add_suppression("Slave SQL.*Query caused different errors on master and slave.*Error on master:.*error code=1062.*Error on slave:.*Error_code: 1847");
73+
call mtr.add_suppression("Slave SQL.*Query caused different errors on master and slave.*Error on master:.*error code=1062.*Error on slave:.*Error_code: 1860");
7474
call mtr.add_suppression("The slave coordinator and worker threads are stopped, possibly leaving data in inconsistent state");
7575
--let $slave_sql_errno= 1062
7676
--source include/wait_for_slave_sql_error_and_skip.inc
@@ -161,10 +161,10 @@ if (`SELECT @@global.binlog_format != 'ROW'`)
161161
# Query causes error on master but not on slave. This causes the slave to
162162
# stop with error code 0 (which is wrong: see BUG#57287)
163163
# A new error code ER_INCONSISTENT_ERROR has been introduced instead of 0.
164-
# The error code is 1847
164+
# The error code is 1860
165165
# 1756 = ER_MTS_INCONSISTENT_DATA
166-
# 1847 = ER_INCONSISTENT_ERROR
167-
--let $slave_sql_errno= 1847,1756
166+
# 1860 = ER_INCONSISTENT_ERROR
167+
--let $slave_sql_errno= 1860,1756
168168
--source include/wait_for_slave_sql_error.inc
169169
drop table t1, t2;
170170
}
@@ -187,7 +187,7 @@ DROP TABLE t1;
187187

188188
-- let $db1= b48297_db1
189189
-- let $db2= b42897_db2
190-
190+
191191
-- connection master
192192

193193
-- disable_warnings

mysql-test/extra/rpl_tests/rpl_stm_EE_err2.test

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ insert into t1 values(1),(2);
2424
drop table t1;
2525

2626
connection slave;
27-
call mtr.add_suppression("Slave SQL.*Query caused different errors on master and slave.*Error on master:.* error code=1062.*Error on slave:.* Error_code: 1847");
27+
call mtr.add_suppression("Slave SQL.*Query caused different errors on master and slave.*Error on master:.* error code=1062.*Error on slave:.* Error_code: 1860");
2828
call mtr.add_suppression("The slave coordinator and worker threads are stopped, possibly leaving data in inconsistent state");
2929

3030
--echo (expect different error codes on master and slave)
3131
# 1756 = ER_MTS_INCONSISTENT_DATA
32-
# 1847 = ER_INCONSISTENT_ERROR
33-
--let $slave_sql_errno= 1847,1756
32+
# 1860 = ER_INCONSISTENT_ERROR
33+
--let $slave_sql_errno= 1860,1756
3434
# can't print error text. MTS reports a separate error in this case.
3535
# Todo: to fix single-threaded-slave BUG#57287.
3636
--let $show_slave_sql_error= 0

mysql-test/r/alter_table.result

+7-7
Original file line numberDiff line numberDiff line change
@@ -1574,9 +1574,9 @@ ALTER TABLE t1 ADD INDEX i5(b), LOCK= INVALID;
15741574
ERROR HY000: Unknown LOCK type 'INVALID'
15751575
ALTER TABLE m1 ENABLE KEYS, LOCK= DEFAULT;
15761576
ALTER TABLE m1 ENABLE KEYS, LOCK= NONE;
1577-
ERROR 42000: This version of MySQL doesn't yet support 'ALTER TABLE m1 ENABLE KEYS, LOCK= NONE'
1577+
ERROR 0A000: LOCK=NONE/SHARED is not supported for this operation. Try LOCK=EXCLUSIVE.
15781578
ALTER TABLE m1 ENABLE KEYS, LOCK= SHARED;
1579-
ERROR 42000: This version of MySQL doesn't yet support 'ALTER TABLE m1 ENABLE KEYS, LOCK= SHARED'
1579+
ERROR 0A000: LOCK=NONE/SHARED is not supported for this operation. Try LOCK=EXCLUSIVE.
15801580
ALTER TABLE m1 ENABLE KEYS, LOCK= EXCLUSIVE;
15811581
ALTER TABLE t1 DROP INDEX i1, DROP INDEX i2, DROP INDEX i3, DROP INDEX i4;
15821582
#
@@ -1596,7 +1596,7 @@ info: Records: 0 Duplicates: 0 Warnings: 1
15961596
Warnings:
15971597
Warning 1831 Duplicate index 'i3' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release.
15981598
ALTER TABLE t1 ADD INDEX i4(b), ALGORITHM= COPY, LOCK= NONE;
1599-
ERROR 42000: This version of MySQL doesn't yet support 'ALTER TABLE t1 ADD INDEX i4(b), ALGORITHM= COPY, LOCK= NONE'
1599+
ERROR 0A000: LOCK=NONE is not supported. Reason: COPY algorithm requires a lock. Try LOCK=SHARED.
16001600
ALTER TABLE t1 ADD INDEX i5(b), ALGORITHM= COPY, LOCK= SHARED;
16011601
affected rows: 2
16021602
info: Records: 2 Duplicates: 0 Warnings: 1
@@ -1608,13 +1608,13 @@ info: Records: 2 Duplicates: 0 Warnings: 1
16081608
Warnings:
16091609
Warning 1831 Duplicate index 'i6' defined on the table 'test.t1'. This is deprecated and will be disallowed in a future release.
16101610
ALTER TABLE m1 ENABLE KEYS, ALGORITHM= INPLACE, LOCK= NONE;
1611-
ERROR 42000: This version of MySQL doesn't yet support 'ALTER TABLE m1 ENABLE KEYS, ALGORITHM= INPLACE, LOCK= NONE'
1611+
ERROR 0A000: LOCK=NONE/SHARED is not supported for this operation. Try LOCK=EXCLUSIVE.
16121612
ALTER TABLE m1 ENABLE KEYS, ALGORITHM= INPLACE, LOCK= SHARED;
1613-
ERROR 42000: This version of MySQL doesn't yet support 'ALTER TABLE m1 ENABLE KEYS, ALGORITHM= INPLACE, LOCK= SHARED'
1613+
ERROR 0A000: LOCK=NONE/SHARED is not supported for this operation. Try LOCK=EXCLUSIVE.
16141614
ALTER TABLE m1 ENABLE KEYS, ALGORITHM= INPLACE, LOCK= EXCLUSIVE;
16151615
affected rows: 0
16161616
ALTER TABLE m1 ENABLE KEYS, ALGORITHM= COPY, LOCK= NONE;
1617-
ERROR 42000: This version of MySQL doesn't yet support 'ALTER TABLE m1 ENABLE KEYS, ALGORITHM= COPY, LOCK= NONE'
1617+
ERROR 0A000: LOCK=NONE is not supported. Reason: COPY algorithm requires a lock. Try LOCK=SHARED.
16181618
ALTER TABLE m1 ENABLE KEYS, ALGORITHM= COPY, LOCK= SHARED;
16191619
affected rows: 2
16201620
info: Records: 2 Duplicates: 0 Warnings: 0
@@ -1714,7 +1714,7 @@ ALTER TABLE tm1 ADD FULLTEXT INDEX im4 (d2);
17141714
affected rows: 2
17151715
info: Records: 2 Duplicates: 0 Warnings: 0
17161716
ALTER TABLE ti1 ADD PRIMARY KEY(a), ALGORITHM=INPLACE;
1717-
ERROR 42000: This version of MySQL doesn't yet support 'ALTER TABLE ti1 ADD PRIMARY KEY(a), ALGORITHM=INPLACE'
1717+
ERROR 0A000: ALGORITHM=INPLACE is not supported. Reason: InnoDB presently supports one FULLTEXT index creation at a time. Try ALGORITHM=COPY.
17181718
ALTER TABLE ti1 ADD PRIMARY KEY(a);
17191719
affected rows: 2
17201720
info: Records: 2 Duplicates: 0 Warnings: 0

mysql-test/r/insert.result

+2-2
Original file line numberDiff line numberDiff line change
@@ -577,10 +577,10 @@ DROP TABLE t1;
577577
CREATE TABLE t1( a INT );
578578
INSERT DELAYED INTO t1 VALUES ( 1 );
579579
Warnings:
580-
Warning 1850 INSERT DELAYED is no longer supported. The statement was converted to INSERT.
580+
Warning 1863 INSERT DELAYED is no longer supported. The statement was converted to INSERT.
581581
REPLACE DELAYED INTO t1 VALUES ( 1 );
582582
Warnings:
583-
Warning 1850 REPLACE DELAYED is no longer supported. The statement was converted to REPLACE.
583+
Warning 1863 REPLACE DELAYED is no longer supported. The statement was converted to REPLACE.
584584
DROP TABLE t1;
585585
SET GLOBAL delayed_insert_limit = DEFAULT;
586586
Warnings:

mysql-test/suite/innodb/r/innodb-alter-autoinc.result

+2-4
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ INSERT INTO t1 VALUES(347),(33101),(123),(45),(6);
33
ALTER TABLE t1 ADD PRIMARY KEY(a);
44
ALTER TABLE t1 DROP PRIMARY KEY, ADD id INT AUTO_INCREMENT PRIMARY KEY,
55
LOCK=NONE;
6-
ERROR 42000: This version of MySQL doesn't yet support 'ALTER TABLE t1 DROP PRIMARY KEY, ADD id INT AUTO_INCREMENT PRIMARY KEY,
7-
LOCK=NONE'
6+
ERROR 0A000: LOCK=NONE is not supported. Reason: Adding an auto-increment column requires a lock. Try LOCK=SHARED.
87
ALTER TABLE t1 ADD id INT AUTO_INCREMENT;
98
ERROR 42000: Incorrect table definition; there can be only one auto column and it must be defined as a key
109
ALTER TABLE t1 ADD id INT AUTO_INCREMENT, ADD INDEX(a, id);
@@ -49,8 +48,7 @@ t1 CREATE TABLE `t1` (
4948
) ENGINE=InnoDB AUTO_INCREMENT=75 DEFAULT CHARSET=latin1
5049
ALTER TABLE t1 DROP PRIMARY KEY, ADD id INT AUTO_INCREMENT PRIMARY KEY,
5150
DROP COLUMN id, AUTO_INCREMENT = 42, LOCK=NONE;
52-
ERROR 42000: This version of MySQL doesn't yet support 'ALTER TABLE t1 DROP PRIMARY KEY, ADD id INT AUTO_INCREMENT PRIMARY KEY,
53-
DROP COLUMN id, AUTO_INCREMENT = 42, LOCK=NONE'
51+
ERROR 0A000: LOCK=NONE is not supported. Reason: Adding an auto-increment column requires a lock. Try LOCK=SHARED.
5452
ALTER TABLE t1 DROP PRIMARY KEY, ADD id INT AUTO_INCREMENT PRIMARY KEY,
5553
DROP COLUMN id, AUTO_INCREMENT = 42, ALGORITHM=INPLACE;
5654
SELECT * FROM t1;

mysql-test/suite/innodb/r/innodb-alter.result

+12-23
Original file line numberDiff line numberDiff line change
@@ -415,9 +415,7 @@ CREATE TABLE t1o LIKE t1;
415415
ALTER TABLE t1 ADD FULLTEXT INDEX (ct),
416416
CHANGE c1 pk INT, ALTER c2 SET DEFAULT 42, RENAME TO tt,
417417
ALGORITHM=INPLACE, LOCK=NONE;
418-
ERROR 42000: This version of MySQL doesn't yet support 'ALTER TABLE t1 ADD FULLTEXT INDEX (ct),
419-
CHANGE c1 pk INT, ALTER c2 SET DEFAULT 42, RENAME TO tt,
420-
ALGORITHM=INPLACE, LOCK=NONE'
418+
ERROR 0A000: LOCK=NONE is not supported. Reason: Fulltext index creation requires a lock. Try LOCK=SHARED.
421419
ALTER TABLE t1 ADD FULLTEXT INDEX (ct),
422420
CHANGE c1 pk INT, ALTER c2 SET DEFAULT 42, RENAME TO tt,
423421
ALGORITHM=INPLACE, LOCK=SHARED;
@@ -463,34 +461,30 @@ ADD COLUMN FTS_DOC_ID BIGINT UNSIGNED NOT NULL;
463461
ALTER TABLE t1o ADD FULLTEXT INDEX(ct), ADD COLUMN FTS_DOC_ID INT;
464462
ERROR 42S21: Duplicate column name 'FTS_DOC_ID'
465463
ALTER TABLE t1o DROP COLUMN FTS_DOC_ID, ALGORITHM=INPLACE;
466-
ERROR 42000: This version of MySQL doesn't yet support 'ALTER TABLE t1o DROP COLUMN FTS_DOC_ID, ALGORITHM=INPLACE'
464+
ERROR 0A000: ALGORITHM=INPLACE is not supported. Reason: Cannot drop or rename FTS_DOC_ID. Try ALGORITHM=COPY.
467465
ALTER TABLE t1o DROP COLUMN FTS_DOC_ID, DROP INDEX ct, ALGORITHM=INPLACE;
468466
ALTER TABLE t1o ADD FULLTEXT INDEX(ct), ADD COLUMN cu TEXT;
469467
Warnings:
470468
Warning 124 InnoDB rebuilding table to add column FTS_DOC_ID
471469
ALTER TABLE t1o ADD FULLTEXT INDEX(cu), ADD COLUMN FTS_DOC_ID BIGINT,
472470
ALGORITHM=INPLACE;
473-
ERROR 42000: This version of MySQL doesn't yet support 'ALTER TABLE t1o ADD FULLTEXT INDEX(cu), ADD COLUMN FTS_DOC_ID BIGINT,
474-
ALGORITHM=INPLACE'
471+
ERROR 0A000: ALGORITHM=INPLACE is not supported. Reason: InnoDB presently supports one FULLTEXT index creation at a time. Try ALGORITHM=COPY.
475472
ALTER TABLE t1o ADD FULLTEXT INDEX(cu), ADD COLUMN FTS_DOC_ID BIGINT;
476473
ERROR 42000: Incorrect column name 'FTS_DOC_ID'
477474
ALTER TABLE t1o ADD FULLTEXT INDEX(cu), ADD COLUMN FTS_DOC_ID BIGINT UNSIGNED,
478475
ALGORITHM=INPLACE;
479-
ERROR 42000: This version of MySQL doesn't yet support 'ALTER TABLE t1o ADD FULLTEXT INDEX(cu), ADD COLUMN FTS_DOC_ID BIGINT UNSIGNED,
480-
ALGORITHM=INPLACE'
476+
ERROR 0A000: ALGORITHM=INPLACE is not supported. Reason: InnoDB presently supports one FULLTEXT index creation at a time. Try ALGORITHM=COPY.
481477
ALTER TABLE t1o ADD FULLTEXT INDEX(cu), ADD COLUMN FTS_DOC_ID BIGINT UNSIGNED;
482478
ERROR 42000: Incorrect column name 'FTS_DOC_ID'
483479
ALTER TABLE t1o ADD FULLTEXT INDEX(cu),
484480
ADD COLUMN FTS_DOC_ID BIGINT UNSIGNED NOT NULL, ALGORITHM=INPLACE;
485-
ERROR 42000: This version of MySQL doesn't yet support 'ALTER TABLE t1o ADD FULLTEXT INDEX(cu),
486-
ADD COLUMN FTS_DOC_ID BIGINT UNSIGNED NOT NULL, ALGORITHM=INPLACE'
481+
ERROR 0A000: ALGORITHM=INPLACE is not supported. Reason: InnoDB presently supports one FULLTEXT index creation at a time. Try ALGORITHM=COPY.
487482
ALTER TABLE t1o ADD COLUMN FTS_DOC_ID BIGINT UNSIGNED NOT NULL,
488483
ALGORITHM=INPLACE;
489-
ERROR 42000: This version of MySQL doesn't yet support 'ALTER TABLE t1o ADD COLUMN FTS_DOC_ID BIGINT UNSIGNED NOT NULL,
490-
ALGORITHM=INPLACE'
484+
ERROR 0A000: ALGORITHM=INPLACE is not supported. Reason: InnoDB presently supports one FULLTEXT index creation at a time. Try ALGORITHM=COPY.
491485
ALTER TABLE t1o ADD COLUMN FTS_DOC_ID BIGINT UNSIGNED NOT NULL;
492486
ALTER TABLE t1o DROP COLUMN FTS_DOC_ID, ALGORITHM=INPLACE;
493-
ERROR 42000: This version of MySQL doesn't yet support 'ALTER TABLE t1o DROP COLUMN FTS_DOC_ID, ALGORITHM=INPLACE'
487+
ERROR 0A000: ALGORITHM=INPLACE is not supported. Reason: Cannot drop or rename FTS_DOC_ID. Try ALGORITHM=COPY.
494488
ALTER TABLE t1o DROP COLUMN FTS_DOC_ID;
495489
ALTER TABLE t1o ADD FULLTEXT INDEX(ct), CHANGE c1 FTS_DOC_ID INT,
496490
ALGORITHM=COPY;
@@ -504,9 +498,7 @@ ERROR 42000: Incorrect column name 'FTS_DOC_ID'
504498
ALTER TABLE t1o ADD FULLTEXT INDEX(ct),
505499
CHANGE c1 FTS_DOC_ID BIGINT UNSIGNED NOT NULL,
506500
ALGORITHM=INPLACE;
507-
ERROR 42000: This version of MySQL doesn't yet support 'ALTER TABLE t1o ADD FULLTEXT INDEX(ct),
508-
CHANGE c1 FTS_DOC_ID BIGINT UNSIGNED NOT NULL,
509-
ALGORITHM=INPLACE'
501+
ERROR 0A000: ALGORITHM=INPLACE is not supported. Reason: Cannot change column type INPLACE. Try ALGORITHM=COPY.
510502
CREATE TABLE t1n LIKE t1o;
511503
ALTER TABLE t1n ADD FULLTEXT INDEX(ct);
512504
ALTER TABLE t1n CHANGE c1 Fts_DOC_ID INT, ALGORITHM=INPLACE;
@@ -579,16 +571,14 @@ t1n CREATE TABLE `t1n` (
579571
DROP TABLE t1n;
580572
ALTER TABLE t1o MODIFY c1 BIGINT UNSIGNED NOT NULL, DROP INDEX ct,
581573
ALGORITHM=INPLACE;
582-
ERROR 42000: This version of MySQL doesn't yet support 'ALTER TABLE t1o MODIFY c1 BIGINT UNSIGNED NOT NULL, DROP INDEX ct,
583-
ALGORITHM=INPLACE'
574+
ERROR 0A000: ALGORITHM=INPLACE is not supported. Reason: Cannot change column type INPLACE. Try ALGORITHM=COPY.
584575
ALTER TABLE t1o MODIFY c1 BIGINT UNSIGNED NOT NULL, DROP INDEX ct;
585576
ALTER TABLE t1o CHANGE c1 FTS_DOC_ID BIGINT UNSIGNED NOT NULL,
586577
ALGORITHM=INPLACE;
587578
ALTER TABLE t1o ADD FULLTEXT INDEX(ct), ALGORITHM=INPLACE;
588579
ALTER TABLE t1o CHANGE FTS_DOC_ID foo_id BIGINT UNSIGNED NOT NULL,
589580
ALGORITHM=INPLACE;
590-
ERROR 42000: This version of MySQL doesn't yet support 'ALTER TABLE t1o CHANGE FTS_DOC_ID foo_id BIGINT UNSIGNED NOT NULL,
591-
ALGORITHM=INPLACE'
581+
ERROR 0A000: ALGORITHM=INPLACE is not supported. Reason: Cannot drop or rename FTS_DOC_ID. Try ALGORITHM=COPY.
592582
SELECT sc.pos FROM information_schema.innodb_sys_columns sc
593583
INNER JOIN information_schema.innodb_sys_tables st
594584
ON sc.TABLE_ID=st.TABLE_ID
@@ -648,8 +638,7 @@ ALTER TABLE t1o CHANGE foo_id FTS_DOC_ID BIGINT UNSIGNED NOT NULL,
648638
ADD FULLTEXT INDEX(ct);
649639
ALTER TABLE t1o CHANGE FTS_DOC_ID foo_id BIGINT UNSIGNED NOT NULL,
650640
ALGORITHM=INPLACE;
651-
ERROR 42000: This version of MySQL doesn't yet support 'ALTER TABLE t1o CHANGE FTS_DOC_ID foo_id BIGINT UNSIGNED NOT NULL,
652-
ALGORITHM=INPLACE'
641+
ERROR 0A000: ALGORITHM=INPLACE is not supported. Reason: Cannot drop or rename FTS_DOC_ID. Try ALGORITHM=COPY.
653642
DROP TABLE sys_indexes;
654643
CREATE TABLE sys_indexes SELECT i.* FROM INFORMATION_SCHEMA.INNODB_SYS_INDEXES i
655644
INNER JOIN sys_tables st ON i.TABLE_ID=st.TABLE_ID;
@@ -681,7 +670,7 @@ pos NAME
681670
0 t
682671
1 FTS_DOC_ID
683672
ALTER TABLE t ROW_FORMAT=REDUNDANT, ALGORITHM=INPLACE;
684-
ERROR 42000: This version of MySQL doesn't yet support 'ALTER TABLE t ROW_FORMAT=REDUNDANT, ALGORITHM=INPLACE'
673+
ERROR 0A000: ALGORITHM=INPLACE is not supported. Reason: InnoDB presently supports one FULLTEXT index creation at a time. Try ALGORITHM=COPY.
685674
ALTER TABLE t ROW_FORMAT=REDUNDANT;
686675
SELECT sc.pos, sc.NAME FROM information_schema.innodb_sys_columns sc
687676
INNER JOIN information_schema.innodb_sys_tables st

mysql-test/suite/innodb/r/innodb-index-online-fk.result

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ CREATE INDEX tb ON child(a2);
77
INSERT INTO child VALUES(10,20);
88
ALTER TABLE child ADD FOREIGN KEY(a2) REFERENCES parent(b),
99
ALGORITHM = INPLACE;
10-
ERROR 42000: This version of MySQL doesn't yet support 'ALTER TABLE child ADD FOREIGN KEY(a2) REFERENCES parent(b),
11-
ALGORITHM = INPLACE'
10+
ERROR 0A000: ALGORITHM=INPLACE is not supported. Reason: Adding foreign keys needs foreign_key_checks=OFF. Try ALGORITHM=COPY.
1211
SET foreign_key_checks = 0;
1312
ALTER TABLE child ADD CONSTRAINT fk_1 FOREIGN KEY (a2)
1413
REFERENCES parent(b) ON DELETE SET NULL ON UPDATE CASCADE,

mysql-test/suite/innodb/r/innodb-index-online.result

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ ALTER TABLE t1 ADD UNIQUE INDEX(c2);
5454
ERROR 23000: Duplicate entry '4' for key 'c2'
5555
DELETE FROM t1 WHERE c1 = 7;
5656
ALTER TABLE t1 ADD FOREIGN KEY(c2) REFERENCES t1(c2), ALGORITHM = INPLACE;
57-
ERROR 42000: This version of MySQL doesn't yet support 'ALTER TABLE t1 ADD FOREIGN KEY(c2) REFERENCES t1(c2), ALGORITHM = INPLACE'
57+
ERROR 0A000: ALGORITHM=INPLACE is not supported. Reason: Adding foreign keys needs foreign_key_checks=OFF. Try ALGORITHM=COPY.
5858
ALTER TABLE t1 ADD UNIQUE INDEX(c2), LOCK = EXCLUSIVE, ALGORITHM = INPLACE;
5959
DROP INDEX c2 ON t1;
6060
ALTER TABLE t1 ADD UNIQUE INDEX(c2);

mysql-test/suite/innodb/r/innodb-table-online.result

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ t1 CREATE TABLE `t1` (
7979
UNIQUE KEY `c2_2` (`c2`)
8080
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT
8181
ALTER TABLE t1 DROP INDEX c2, ALGORITHM = INPLACE;
82-
ERROR 42000: This version of MySQL doesn't yet support 'ALTER TABLE t1 DROP INDEX c2, ALGORITHM = INPLACE'
82+
ERROR 0A000: ALGORITHM=INPLACE is not supported. Reason: Dropping a primary key is not allowed without also adding a new primary key. Try ALGORITHM=COPY.
8383
SHOW CREATE TABLE t1;
8484
Table Create Table
8585
t1 CREATE TABLE `t1` (

mysql-test/suite/innodb/r/innodb-wl5980-alter.result

+3-8
Original file line numberDiff line numberDiff line change
@@ -680,9 +680,7 @@ CREATE TABLE t1o LIKE t1;
680680
ALTER TABLE t1 ADD FULLTEXT INDEX (ct),
681681
CHANGE c1 pk INT, ALTER c2 SET DEFAULT 42, RENAME TO tt,
682682
ALGORITHM=INPLACE, LOCK=NONE;
683-
ERROR 42000: This version of MySQL doesn't yet support 'ALTER TABLE t1 ADD FULLTEXT INDEX (ct),
684-
CHANGE c1 pk INT, ALTER c2 SET DEFAULT 42, RENAME TO tt,
685-
ALGORITHM=INPLACE, LOCK=NONE'
683+
ERROR 0A000: LOCK=NONE is not supported. Reason: Fulltext index creation requires a lock. Try LOCK=SHARED.
686684
ALTER TABLE t1 ADD FULLTEXT INDEX (ct),
687685
CHANGE c1 pk INT, ALTER c2 SET DEFAULT 42, RENAME TO tt,
688686
ALGORITHM=INPLACE, LOCK=SHARED;
@@ -754,9 +752,7 @@ ERROR 42000: Incorrect column name 'FTS_Doc_ID'
754752
ALTER TABLE t1o ADD FULLTEXT INDEX(ct),
755753
CHANGE c1 FTS_DOC_ID BIGINT UNSIGNED NOT NULL,
756754
ALGORITHM=INPLACE;
757-
ERROR 42000: This version of MySQL doesn't yet support 'ALTER TABLE t1o ADD FULLTEXT INDEX(ct),
758-
CHANGE c1 FTS_DOC_ID BIGINT UNSIGNED NOT NULL,
759-
ALGORITHM=INPLACE'
755+
ERROR 0A000: ALGORITHM=INPLACE is not supported. Reason: Cannot change column type INPLACE. Try ALGORITHM=COPY.
760756
CREATE TABLE t1n LIKE t1o;
761757
ALTER TABLE t1n ADD FULLTEXT INDEX(ct);
762758
Warnings:
@@ -1185,8 +1181,7 @@ t1p.ibd
11851181
tt.ibd
11861182
ALTER TABLE t1o CHANGE FTS_DOC_ID foo_id BIGINT UNSIGNED NOT NULL,
11871183
LOCK=NONE;
1188-
ERROR 42000: This version of MySQL doesn't yet support 'ALTER TABLE t1o CHANGE FTS_DOC_ID foo_id BIGINT UNSIGNED NOT NULL,
1189-
LOCK=NONE'
1184+
ERROR 0A000: LOCK=NONE is not supported. Reason: Cannot drop or rename FTS_DOC_ID. Try LOCK=SHARED.
11901185
SELECT sc.pos FROM information_schema.innodb_sys_columns sc
11911186
INNER JOIN information_schema.innodb_sys_tables st
11921187
ON sc.TABLE_ID=st.TABLE_ID

mysql-test/suite/innodb/t/innodb-alter-autoinc.test

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ INSERT INTO t1 VALUES(347),(33101),(123),(45),(6);
55
ALTER TABLE t1 ADD PRIMARY KEY(a);
66

77
# We cannot assign AUTO_INCREMENT values during online index creation.
8-
--error ER_NOT_SUPPORTED_YET
8+
--error ER_ALTER_OPERATION_NOT_SUPPORTED_REASON
99
ALTER TABLE t1 DROP PRIMARY KEY, ADD id INT AUTO_INCREMENT PRIMARY KEY,
1010
LOCK=NONE;
1111

@@ -36,7 +36,7 @@ ROLLBACK;
3636
SHOW CREATE TABLE t1;
3737

3838
# We cannot assign AUTO_INCREMENT values during online index creation.
39-
--error ER_NOT_SUPPORTED_YET
39+
--error ER_ALTER_OPERATION_NOT_SUPPORTED_REASON
4040
ALTER TABLE t1 DROP PRIMARY KEY, ADD id INT AUTO_INCREMENT PRIMARY KEY,
4141
DROP COLUMN id, AUTO_INCREMENT = 42, LOCK=NONE;
4242

0 commit comments

Comments
 (0)