1
DROP TABLE IF EXISTS t1, t2, t3, t4, t5;
2
CREATE TABLE t1 (c1 varchar(100)) ENGINE=MyISAM;
3
CREATE TABLE t2 (c1 varchar(100)) ENGINE=MyISAM;
4
CREATE TABLE t3 (c1 varchar(100)) ENGINE=InnoDB;
5
INSERT INTO t1 VALUES ('Ann'), ('Alice');
6
INSERT INTO t2 VALUES ('Bob'), ('Brian');
7
INSERT INTO t3 VALUES ('Chris'), ('Charlie');
8
CREATE TABLE t4 (c1 varchar(100)) ENGINE=MRG_MYISAM UNION=(t1,t2)
10
CREATE TABLE t5 (c1 varchar(100)) ENGINE=MRG_MYISAM UNION=(t1,t3)
13
ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
20
ALTER TABLE t2 ENGINE=InnoDB;
22
ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
23
DELETE FROM t2 LIMIT 1;
25
ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
26
INSERT INTO t4 VALUES ('Beware');
27
ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
29
ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
37
DROP TABLE t1, t2, t3, t4, t5;