~ubuntu-branches/ubuntu/maverick/mysql-5.1/maverick-proposed

« back to all changes in this revision

Viewing changes to mysql-test/suite/bugs/t/rpl_bug31582.test

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 14:16:05 UTC
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: package-import@ubuntu.com-20120222141605-nxlu9yzc6attylc2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
# BUG#31582: 5.1-telco-6.1 -> 5.1.22. Slave crashes when reading
3
 
#            UPDATE for VARCHAR
4
 
 
5
 
# This is a problem for any update statement replicating from an old
6
 
# server to a new server. The bug consisted of a new slave trying to
7
 
# read two column bitmaps, but there is only one available in the old
8
 
# format.
9
 
 
10
 
# This test case should be executed replicating from an old server to
11
 
# a new server, so make sure you have one handy.
12
 
 
13
 
source include/master-slave.inc;
14
 
 
15
 
CREATE TABLE t1 (a VARCHAR(10) PRIMARY KEY) ENGINE=MyISAM;
16
 
INSERT INTO t1 VALUES ('a');
17
 
UPDATE t1 SET a = 'MyISAM';
18
 
SELECT * FROM t1 ORDER BY a;
19
 
sync_slave_with_master;
20
 
SELECT * FROM t1 ORDER BY a;
21
 
 
22
 
connection master;
23
 
DROP TABLE t1;
24
 
sync_slave_with_master;
25