~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/suite/rpl/t/rpl_row_4_bytes.test

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
7
# fail.
 
8
 
 
9
-- source include/have_binlog_format_row.inc
 
10
-- source include/have_debug.inc
 
11
-- source include/master-slave.inc
 
12
 
 
13
connection master;
 
14
--disable_warnings
 
15
drop database if exists mysqltest1;
 
16
create database mysqltest1;
 
17
--enable_warnings
 
18
use 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;
 
27
use mysqltest1;
 
28
select * from t1 order by a;
 
29
select * from t2 order by a;
 
30
 
 
31
connection master;
 
32
DROP DATABASE mysqltest1;
 
33
sync_slave_with_master;