summaryrefslogtreecommitdiffstats
path: root/mysql-test/suite/rpl/r/rpl_row_sp007_innodb.result
blob: 13eb575402bf6ce9d19cfe77c84cb3a9d4e102aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
include/master-slave.inc
[connection master]
CREATE PROCEDURE test.p1(IN i INT)
BEGIN
DECLARE CONTINUE HANDLER FOR sqlexception BEGIN END;
DROP TABLE IF EXISTS test.t1;
CREATE TABLE test.t1 (num INT,PRIMARY KEY(num))ENGINE=INNODB;
START TRANSACTION;
INSERT INTO test.t1 VALUES(i);
savepoint t1_save;
INSERT INTO test.t1 VALUES (14);
ROLLBACK to savepoint t1_save;
COMMIT;
END|
CALL test.p1(12);
SELECT * FROM test.t1;
num
12
connection slave;
SELECT * FROM test.t1;
num
12
connection master;
CALL test.p1(13);
SELECT * FROM test.t1;
num
13
connection slave;
SELECT * FROM test.t1;
num
13
connection master;
DROP PROCEDURE test.p1;
DROP TABLE test.t1;
include/rpl_end.inc