1
#############################################################################
2
# Original Author: JBM #
3
# Original Date: Aug/18/2005 #
4
# Update: 08/29/2005 remove sleep added master pos save and sync #
5
#############################################################################
6
#TEST: Taken and modfied from http://bugs.mysql.com/bug.php?id=11126 #
7
#############################################################################
10
-- source include/have_binlog_format_row.inc
11
-- source include/master-slave.inc
14
# Begin clean up test section
17
DROP PROCEDURE IF EXISTS test.p1;
18
DROP PROCEDURE IF EXISTS test.p2;
19
DROP PROCEDURE IF EXISTS test.p3;
20
DROP PROCEDURE IF EXISTS test.p4;
21
DROP TABLE IF EXISTS test.t1;
22
DROP TABLE IF EXISTS test.t2;
25
# Begin test section 1
27
CREATE PROCEDURE test.p1()
29
INSERT INTO test.t1 VALUES(2);
31
CREATE PROCEDURE test.p2()
33
DROP TEMPORARY TABLE IF EXISTS test.t1;
34
CREATE TEMPORARY TABLE test.t1 (a int, PRIMARY KEY(a));
35
INSERT INTO test.t1 VALUES(1);
40
SELECT * FROM test.t1 ORDER BY a;
49
CREATE PROCEDURE test.p3()
51
INSERT INTO test.t2 VALUES(7);
53
CREATE PROCEDURE test.p4()
55
DROP TABLE IF EXISTS test.t2;
56
CREATE TABLE test.t2 (a int, PRIMARY KEY(a));
57
INSERT INTO test.t2 VALUES(6);
62
SELECT * FROM test.t2 ORDER BY a;
67
SELECT * FROM test.t2 ORDER BY a;
72
DROP PROCEDURE IF EXISTS test.p1;
73
DROP PROCEDURE IF EXISTS test.p2;
74
DROP PROCEDURE IF EXISTS test.p3;
75
DROP PROCEDURE IF EXISTS test.p4;
76
DROP TABLE IF EXISTS test.t1;
77
DROP TABLE IF EXISTS test.t2;
78
sync_slave_with_master;
80
# End of 5.0 test case