Commit f136bde2 authored by mats@kindahl-laptop.dnsalias.net's avatar mats@kindahl-laptop.dnsalias.net
Browse files

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

Just adding testcase. This bug was fixed by patch for BUG#31583.
parent eca01720
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
stop slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
reset master;
reset slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
start slave;
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;
a
MyISAM
SELECT * FROM t1 ORDER BY a;
a
MyISAM
DROP TABLE t1;
+25 −0
Original line number Diff line number Diff line

# 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;
sync_slave_with_master;
+4 −0
Original line number Diff line number Diff line
@@ -19,3 +19,7 @@ SELECT * FROM t1 ORDER BY a;
sync_slave_with_master;
SELECT * FROM t1 ORDER BY a;

connection master;
DROP TABLE t1;
sync_slave_with_master;