~vadim-tk/percona-server/percona-galera-5.1.57-0.8.1

« back to all changes in this revision

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

  • Committer: root
  • Date: 2011-07-28 00:14:23 UTC
  • Revision ID: root@r815.office.percona.com-20110728001423-6pw0v4b7r0dkbsr4
Ported to Galera 0.8.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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