1
# File for specialities regarding replication from or to InnoDB
4
source include/master-slave.inc;
5
source include/have_innodb.inc;
8
# Bug#11401: Load data infile 'REPLACE INTO' fails on slave.
12
id INT(5) unsigned NOT NULL auto_increment,
13
name varchar(15) NOT NULL default '',
14
number varchar(35) NOT NULL default 'default',
16
UNIQUE KEY unique_rec (name,number)
21
INFILE '../std_data_ln/loaddata_pair.dat'
27
sync_slave_with_master;
33
INFILE '../std_data_ln/loaddata_pair.dat'
39
sync_slave_with_master;
46
sync_slave_with_master;
52
# Bug #26418: Slave out of sync after CREATE/DROP TEMPORARY TABLE + ROLLBACK
55
#Note Matthias: to be merged to rpl_ddl.test
57
--source include/not_ndb_default.inc
60
sync_slave_with_master;
63
let $engine_type= "InnoDB";
66
DROP DATABASE IF EXISTS mysqltest1;
69
CREATE DATABASE mysqltest1;
70
CREATE TEMPORARY TABLE mysqltest1.tmp (f1 BIGINT);
71
eval CREATE TABLE mysqltest1.t1 (f1 BIGINT) ENGINE=$engine_type;
74
sync_slave_with_master;
75
--echo -------- switch to slave --------
77
SHOW CREATE TABLE mysqltest1.t1;
79
--echo -------- switch to master --------
81
INSERT INTO mysqltest1.t1 SET f1= 1;
82
DROP TEMPORARY TABLE mysqltest1.tmp;
84
--error ER_NO_SUCH_TABLE
85
SHOW CREATE TABLE mysqltest1.tmp;
86
# Must return no rows here
87
SELECT COUNT(*) FROM mysqltest1.t1;
89
INSERT INTO mysqltest1.t1 SET f1= 2;
90
CREATE TEMPORARY TABLE mysqltest1.tmp2(a INT);
92
SHOW CREATE TABLE mysqltest1.tmp2;
93
# Must return no rows here
94
SELECT COUNT(*) FROM mysqltest1.t1;
96
sync_slave_with_master;
97
--echo -------- switch to slave --------
99
--error ER_NO_SUCH_TABLE
100
SHOW CREATE TABLE mysqltest1.tmp;
101
--error ER_NO_SUCH_TABLE
102
SHOW CREATE TABLE mysqltest1.tmp2;
103
# has two rows here : as the default is MyISAM and
104
# it can't be rolled back by the master's ROLLBACK.
105
SELECT COUNT(*) FROM mysqltest1.t1;
108
--echo -------- switch to master --------
112
DROP DATABASE mysqltest1;
113
-- source include/master-slave-end.inc
115
--echo End of 5.1 tests