summaryrefslogtreecommitdiff
path: root/mysql-test/suite/bugs/t/rpl_bug31582.test
blob: 6bff8ef4172602adbeaf4ad0e81e0265052732cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

# BUG#31582: 5.1-telco-6.1 -> 5.1.22. Slave crashes when reading
#            UPDATE for VARCHAR

# This is a problem for any update statement replicating from an old
# server to a new server. The bug consisted of a new slave trying to
# read two column bitmaps, but there is only one available in the old
# format.

# This test case should be executed replicating from an old server to
# a new server, so make sure you have one handy.

source include/master-slave.inc;

CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) ENGINE=MyISAM;
INSERT INTO t1 VALUES ('a');
UPDATE t1 SET a = 'MyISAM';
SELECT * FROM t1 ORDER BY a;
sync_slave_with_master;
SELECT * FROM t1 ORDER BY a;

connection master;
DROP TABLE t1;

--source include/rpl_end.inc