5 --source suite/parts/inc/part_exch_tabs.inc
30 # 13) Exchanges with indexes.
31 # IGNORE was removed in bug#57708.
32 CREATE INDEX id_t_10_b USING BTREE ON t_10 (b);
33 --error ER_TABLES_DIFFERENT_METADATA
34 ALTER
TABLE tp EXCHANGE PARTITION p0 WITH
TABLE t_10;
35 #--error ER_TABLES_DIFFERENT_METADATA
36 #ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t_10 IGNORE;
37 CREATE INDEX id_tp_b USING BTREE ON tp (b);
38 --error ER_TABLES_DIFFERENT_METADATA
39 ALTER
TABLE tp EXCHANGE PARTITION p0 WITH
TABLE t_10;
40 #--error ER_TABLES_DIFFERENT_METADATA
41 #ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t_10 IGNORE;
42 DROP INDEX id_t_10_b ON t_10;
43 DROP INDEX id_tp_b ON tp;
44 ALTER
TABLE t_10 ADD UNIQUE INDEX USING BTREE (a);
45 --error ER_TABLES_DIFFERENT_METADATA
46 ALTER
TABLE tp EXCHANGE PARTITION p0 WITH
TABLE t_10;
47 #--error ER_TABLES_DIFFERENT_METADATA
48 #ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t_10 IGNORE;
49 ALTER
TABLE tp ADD UNIQUE INDEX USING BTREE (a);
50 ALTER
TABLE tp EXCHANGE PARTITION p0 WITH
TABLE t_10;
51 show create
table t_10;
52 show create
table tp ;
53 ALTER
TABLE tp DROP INDEX a;
54 ALTER
TABLE t_10 DROP INDEX a;
55 ALTER
TABLE tp ADD UNIQUE INDEX USING BTREE (a,b);
56 ALTER
TABLE t_10 ADD UNIQUE INDEX USING BTREE (a,b);
57 ALTER
TABLE tp EXCHANGE PARTITION p0 WITH
TABLE t_10;
58 show create
table t_10;
59 show create
table tp ;
61 --source suite/parts/inc/part_exch_drop_tabs.inc