1
# This test is to make sure that slaves can read a binlog containining
2
# table map ids stored in 4 bytes, even though we now store them in 6
3
# bytes. This is for backward-compatibility.
4
# If the slave does not detect that the master stores the table map id
5
# in 4 bytes, slave will read 6 bytes, and so will read the 2 bytes of
6
# flags at the place where there actually is data, so the test should
9
-- source include/have_binlog_format_row.inc
10
-- source include/have_debug.inc
11
-- source include/master-slave.inc
15
drop database if exists mysqltest1;
16
create database mysqltest1;
19
CREATE TABLE t1 (a char(3));
20
CREATE TABLE t2 (a char(3));
21
insert into t1 values("ANN");
22
insert into t1 values("GUI");
23
insert into t2 values("LIL");
24
insert into t2 values("ABE");
25
insert into t2 values("ANG");
26
sync_slave_with_master;
28
select * from t1 order by a;
29
select * from t2 order by a;
32
DROP DATABASE mysqltest1;
33
sync_slave_with_master;