~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

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;