1
#############################################################################
2
# Original Author: JBM #
3
# Original Date: Aug/15/2005 #
4
# Updated: 08/29/2005 Remove sleeps #
5
#############################################################################
6
# TEST: SP that creates table, starts tranaction inserts. Save point, insert#
7
# rollback to save point and then commits. #
8
#############################################################################
10
-- source include/have_binlog_format_row.inc
11
-- source include/master-slave.inc
13
# Begin clean up test section
16
DROP PROCEDURE IF EXISTS test.p1;
17
DROP TABLE IF EXISTS test.t1;
21
# Begin test section 1
23
eval CREATE PROCEDURE test.p1(IN i INT)
25
DECLARE CONTINUE HANDLER FOR sqlexception BEGIN END;
26
DROP TABLE IF EXISTS test.t1;
27
CREATE TABLE test.t1 (num INT,PRIMARY KEY(num))ENGINE=$engine_type;
29
INSERT INTO test.t1 VALUES(i);
31
INSERT INTO test.t1 VALUES (14);
32
ROLLBACK to savepoint t1_save;
37
let $message=< ---- Master selects-- >;
38
--source include/show_msg.inc
40
SELECT * FROM test.t1;
43
let $message=< ---- Slave selects-- >;
44
--source include/show_msg.inc
48
SELECT * FROM test.t1;
50
let $message=< ---- Master selects-- >;
51
--source include/show_msg.inc
54
SELECT * FROM test.t1;
56
let $message=< ---- Slave selects-- >;
57
--source include/show_msg.inc
61
SELECT * FROM test.t1;
67
DROP PROCEDURE IF EXISTS test.p1;
68
DROP TABLE IF EXISTS test.t1;
70
# End of 5.0 test case