~james-page/ubuntu/precise/mysql-5.5/misc-fixes

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-06-11 07:34:33 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20120611073433-l9za2ni4ipp848y3
Tags: 5.5.24-0ubuntu0.12.04.1
* SECURITY UPDATE: Update to 5.5.24 to fix security issues (LP: #1011371)
  - http://dev.mysql.com/doc/refman/5.5/en/news-5-5-24.html

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# BUG#47103
 
3
 
4
# This test case checks whether the slave crashes or not when there is
 
5
# a merge table in use.
 
6
#
 
7
# Description
 
8
# ===========
 
9
#
 
10
# The test case creates two regular MyISAM tables on the master and
 
11
# one MERGE table. Then it populates the MyISAM tables, updates and 
 
12
# deletes their contents through the merge table. Finally, the slave
 
13
# is synchronized with the master and (after the fix) it won't crash.
 
14
 
15
--source include/master-slave.inc
 
16
--source include/have_binlog_format_row.inc
 
17
--connection master
 
18
 
 
19
CREATE TABLE t1 (a int) ENGINE=MyISAM;
 
20
CREATE TABLE t2 (a int) ENGINE=MyISAM;
 
21
INSERT INTO t1 VALUES (1), (2), (3);
 
22
INSERT INTO t2 VALUES (4), (5), (6);
 
23
CREATE TABLE IF NOT EXISTS t1_merge LIKE t1;
 
24
ALTER TABLE t1_merge ENGINE=MERGE UNION (t2, t1);
 
25
 
 
26
--sync_slave_with_master
 
27
 
 
28
--let diff_tables=master:test.t1, slave:test.t1
 
29
--source include/diff_tables.inc
 
30
 
 
31
--let diff_tables=master:test.t2, slave:test.t2
 
32
--source include/diff_tables.inc
 
33
 
 
34
--connection master
 
35
UPDATE t1_merge SET a=10 WHERE a=1;
 
36
DELETE FROM t1_merge WHERE a=10;
 
37
 
 
38
--sync_slave_with_master
 
39
--connection master
 
40
 
 
41
--let diff_tables=master:test.t1, slave:test.t1
 
42
--source include/diff_tables.inc
 
43
 
 
44
--let diff_tables=master:test.t2, slave:test.t2
 
45
--source include/diff_tables.inc
 
46
 
 
47
DROP TABLE t1_merge, t1, t2;
 
48
--sync_slave_with_master
 
49
 
 
50
--source include/rpl_end.inc