~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysql-test/suite/rpl/t/rpl_row_sp008.test

  • Committer: Brian Aker
  • Date: 2008-07-02 15:22:14 UTC
  • Revision ID: brian@tangent.org-20080702152214-ue73xgu0xogc5702
Removed SP, trig, and cursor tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#############################################################################
2
 
# Original Author: JBM                                                      #
3
 
# Original Date: Aug/15/2005                                                #
4
 
# Update: 08/29/2005 Remove sleep                                           #
5
 
#############################################################################
6
 
# TEST: Use SQL_CALC_FOUND_ROWS and insert results into a table inside a sp #
7
 
#############################################################################
8
 
 
9
 
 
10
 
# Includes
11
 
 
12
 
# Begin clean up test section
13
 
connection master;
14
 
--disable_warnings
15
 
DROP PROCEDURE IF EXISTS test.p1;
16
 
DROP TABLE IF EXISTS test.t2;
17
 
--enable_warnings
18
 
# End of cleanup
19
 
 
20
 
 
21
 
 
22
 
# Begin test section 1
23
 
CREATE TABLE test.t1 (a INT,PRIMARY KEY(a));
24
 
CREATE TABLE test.t2 (a INT,PRIMARY KEY(a));
25
 
INSERT INTO test.t1 VALUES(1),(2);
26
 
 
27
 
delimiter |;
28
 
CREATE PROCEDURE test.p1()
29
 
BEGIN
30
 
 SELECT SQL_CALC_FOUND_ROWS * FROM test.t1 LIMIT 1;
31
 
 INSERT INTO test.t2 VALUES(FOUND_ROWS());
32
 
END|
33
 
delimiter ;|
34
 
 
35
 
let $message=< ---- Master selects-- >;
36
 
--source include/show_msg.inc
37
 
CALL test.p1();
38
 
SELECT * FROM test.t2;
39
 
 
40
 
let $message=< ---- Slave selects-- >;
41
 
--source include/show_msg.inc
42
 
save_master_pos;
43
 
connection slave;
44
 
sync_with_master;
45
 
SELECT * FROM test.t2;
46
 
 
47
 
# Cleanup
48
 
 
49
 
connection master;
50
 
DROP PROCEDURE IF EXISTS test.p1;
51
 
DROP TABLE IF EXISTS test.t1;
52
 
DROP TABLE IF EXISTS test.t2;
53
 
sync_slave_with_master;
54
 
 
55
 
# End of 5.0 test case