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

« back to all changes in this revision

Viewing changes to mysql-test/suite/rpl/r/rpl_truncate_3innodb.result

  • 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
 
stop slave;
2
 
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
3
 
reset master;
4
 
reset slave;
5
 
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
6
 
start slave;
7
 
**** Resetting master and slave ****
8
 
include/stop_slave.inc
9
 
RESET SLAVE;
10
 
RESET MASTER;
11
 
include/start_slave.inc
12
 
**** On Master ****
13
 
CREATE TABLE t1 (a INT, b LONG) ENGINE=InnoDB;
14
 
INSERT INTO t1 VALUES (1,1), (2,2);
15
 
**** On Master ****
16
 
TRUNCATE TABLE t1;
17
 
Comparing tables master:test.t1 and slave:test.t1
18
 
==== Test using a table with delete triggers ====
19
 
**** On Master ****
20
 
SET @count := 1;
21
 
CREATE TABLE t2 (a INT, b LONG) ENGINE=InnoDB;
22
 
CREATE TRIGGER trg1 BEFORE DELETE ON t1 FOR EACH ROW SET @count := @count + 1;
23
 
**** On Master ****
24
 
TRUNCATE TABLE t1;
25
 
Comparing tables master:test.t2 and slave:test.t2
26
 
DROP TABLE t1,t2;
27
 
**** Resetting master and slave ****
28
 
include/stop_slave.inc
29
 
RESET SLAVE;
30
 
RESET MASTER;
31
 
include/start_slave.inc
32
 
**** On Master ****
33
 
CREATE TABLE t1 (a INT, b LONG) ENGINE=InnoDB;
34
 
INSERT INTO t1 VALUES (1,1), (2,2);
35
 
**** On Master ****
36
 
DELETE FROM t1;
37
 
Comparing tables master:test.t1 and slave:test.t1
38
 
==== Test using a table with delete triggers ====
39
 
**** On Master ****
40
 
SET @count := 1;
41
 
CREATE TABLE t2 (a INT, b LONG) ENGINE=InnoDB;
42
 
CREATE TRIGGER trg1 BEFORE DELETE ON t1 FOR EACH ROW SET @count := @count + 1;
43
 
**** On Master ****
44
 
DELETE FROM t1;
45
 
Comparing tables master:test.t2 and slave:test.t2
46
 
DROP TABLE t1,t2;
 
1
include/master-slave.inc
 
2
[connection master]
 
3
include/rpl_reset.inc
 
4
**** On Master ****
 
5
CREATE TABLE t1 (a INT, b LONG) ENGINE=InnoDB;
 
6
INSERT INTO t1 VALUES (1,1), (2,2);
 
7
**** On Master ****
 
8
TRUNCATE TABLE t1;
 
9
include/diff_tables.inc [master:t1, slave:t1]
 
10
==== Test using a table with delete triggers ====
 
11
**** On Master ****
 
12
SET @count := 1;
 
13
CREATE TABLE t2 (a INT, b LONG) ENGINE=InnoDB;
 
14
CREATE TRIGGER trg1 BEFORE DELETE ON t1 FOR EACH ROW SET @count := @count + 1;
 
15
**** On Master ****
 
16
TRUNCATE TABLE t1;
 
17
include/diff_tables.inc [master:t2, slave:t2]
 
18
DROP TABLE t1,t2;
 
19
include/rpl_reset.inc
 
20
**** On Master ****
 
21
CREATE TABLE t1 (a INT, b LONG) ENGINE=InnoDB;
 
22
INSERT INTO t1 VALUES (1,1), (2,2);
 
23
**** On Master ****
 
24
DELETE FROM t1;
 
25
include/diff_tables.inc [master:t1, slave:t1]
 
26
==== Test using a table with delete triggers ====
 
27
**** On Master ****
 
28
SET @count := 1;
 
29
CREATE TABLE t2 (a INT, b LONG) ENGINE=InnoDB;
 
30
CREATE TRIGGER trg1 BEFORE DELETE ON t1 FOR EACH ROW SET @count := @count + 1;
 
31
**** On Master ****
 
32
DELETE FROM t1;
 
33
include/diff_tables.inc [master:t2, slave:t2]
 
34
DROP TABLE t1,t2;
 
35
include/rpl_end.inc