~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-05-11 18:47:32 UTC
  • mto: (2.1.2 sid) (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20100511184732-jhn055kfhxze24kt
Tags: upstream-5.1.46
ImportĀ upstreamĀ versionĀ 5.1.46

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;