~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
stop slave;
 
2
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
3
reset master;
 
4
reset slave;
 
5
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
6
start slave;
 
7
DROP PROCEDURE IF EXISTS test.p1;
 
8
DROP TABLE IF EXISTS test.t2;
 
9
CREATE TABLE test.t1 (a INT,PRIMARY KEY(a));
 
10
CREATE TABLE test.t2 (a INT,PRIMARY KEY(a));
 
11
INSERT INTO test.t1 VALUES(1),(2);
 
12
CREATE PROCEDURE test.p1()
 
13
BEGIN
 
14
SELECT SQL_CALC_FOUND_ROWS * FROM test.t1 LIMIT 1;
 
15
INSERT INTO test.t2 VALUES(FOUND_ROWS());
 
16
END|
 
17
 
 
18
< ---- Master selects-- >
 
19
-------------------------
 
20
CALL test.p1();
 
21
a
 
22
1
 
23
SELECT * FROM test.t2;
 
24
a
 
25
2
 
26
 
 
27
< ---- Slave selects-- >
 
28
------------------------
 
29
SELECT * FROM test.t2;
 
30
a
 
31
2
 
32
DROP PROCEDURE IF EXISTS test.p1;
 
33
DROP TABLE IF EXISTS test.t1;
 
34
DROP TABLE IF EXISTS test.t2;