1
# See if replication between MyISAM, MEMORY and InnoDB works.
3
#This test case is not written for NDB, result files do not
4
#match when NDB is the default engine
5
-- source include/not_ndb_default.inc
7
-- source include/master-slave.inc
10
-- source include/have_innodb.inc
13
-- source include/have_innodb.inc
15
create database if not exists mysqltest1;
17
drop table if exists t1;
19
CREATE TABLE t1 (id MEDIUMINT NOT NULL, b1 BIT(8), vc
20
VARCHAR(255), bc CHAR(255), d DECIMAL(10,4) DEFAULT 0, f FLOAT DEFAULT
21
0, total BIGINT UNSIGNED, y YEAR, t TIMESTAMP,PRIMARY KEY(id));
23
sync_slave_with_master;
26
# MyISAM to MyISAM then InnoDB then MEMORY
29
alter table t1 engine=myisam;
31
sync_slave_with_master;
34
alter table t1 engine=myisam;
37
--source include/rpl_multi_engine.inc
40
alter table t1 engine=innodb;
43
--source include/rpl_multi_engine.inc
46
alter table t1 engine=memory;
49
--source include/rpl_multi_engine.inc
54
alter table t1 engine=memory;
56
sync_slave_with_master;
59
alter table t1 engine=myisam;
62
--source include/rpl_multi_engine.inc
65
alter table t1 engine=innodb;
68
--source include/rpl_multi_engine.inc
71
alter table t1 engine=memory;
74
--source include/rpl_multi_engine.inc
79
alter table t1 engine=innodb;
81
sync_slave_with_master;
84
alter table t1 engine=myisam;
87
--source include/rpl_multi_engine.inc
90
alter table t1 engine=innodb;
93
--source include/rpl_multi_engine.inc
96
alter table t1 engine=memory;
99
--source include/rpl_multi_engine.inc
104
# Need to drop mysqltest1 as well so other test will pass.
105
DROP DATABASE mysqltest1;
106
sync_slave_with_master;
108
# End of 5.1 test case