Commit 823a4435 authored by unknown's avatar unknown

rpl_sp_effects.result, rpl_sp_effects.test:

  Updated with order by's to allow ndb engine to pass when using this test.


mysql-test/t/rpl_sp_effects.test:
  Updated with order by's to allow ndb engine to pass when using this test.
mysql-test/r/rpl_sp_effects.result:
  Updated with order by's to allow ndb engine to pass when using this test.
parent 8ab1ac55
...@@ -19,24 +19,30 @@ set spv=spv+1; ...@@ -19,24 +19,30 @@ set spv=spv+1;
end while; end while;
end// end//
call p1(); call p1();
select * from t1; SELECT * FROM t1 ORDER BY a;
a
1
2
3
4
5
SELECT * FROM t1 ORDER BY a;
a a
1 1
2 2
3 3
4 4
5 5
delete from t1;
create procedure p2() create procedure p2()
begin begin
declare a int default 4; declare a int default 4;
create table t2 as select a; create table t2 as select a;
end// end//
call p2(); call p2();
select * from t2; SELECT * FROM t2 ORDER BY a;
a a
4 4
select * from t2; SELECT * FROM t2 ORDER BY a;
a a
4 4
drop procedure p1; drop procedure p1;
...@@ -61,43 +67,58 @@ end// ...@@ -61,43 +67,58 @@ end//
call p1(f1(1), f1(2)); call p1(f1(1), f1(2));
yes yes
yes yes
select * from t1; SELECT * FROM t1 ORDER BY a;
a a
1 1
1
2
2 2
3
4
5
5 5
6 6
7 7
8 8
create table t2(a int); create table t2(a int);
insert into t2 values (10),(11); insert into t2 values (10),(11);
select a,f1(a) from t2; SELECT a,f1(a) FROM t2 ORDER BY a;
a f1(a) a f1(a)
10 11 10 11
11 12 11 12
insert into t2 select f1(3); insert into t2 select f1(3);
select 'master:',a from t1; SELECT 'master:',a FROM t1 ORDER BY a;
master: a master: a
master: 1 master: 1
master: 1
master: 2
master: 2 master: 2
master: 3
master: 3
master: 4
master: 5
master: 5 master: 5
master: 6 master: 6
master: 7 master: 7
master: 8 master: 8
master: 10 master: 10
master: 11 master: 11
master: 3 SELECT 'slave:',a FROM t1 ORDER BY a;
select 'slave:',a from t1;
slave: a slave: a
slave: 1 slave: 1
slave: 1
slave: 2
slave: 2 slave: 2
slave: 3
slave: 3
slave: 4
slave: 5
slave: 5 slave: 5
slave: 6 slave: 6
slave: 7 slave: 7
slave: 8 slave: 8
slave: 10 slave: 10
slave: 11 slave: 11
slave: 3
drop procedure p1; drop procedure p1;
delete from t1; delete from t1;
delete from t2; delete from t2;
...@@ -108,11 +129,11 @@ select * from v1; ...@@ -108,11 +129,11 @@ select * from v1;
f1(a) f1(a)
2 2
3 3
select 'master:',a from t1; SELECT 'master:',a FROM t1 ORDER BY a;
master: a master: a
master: 1 master: 1
master: 2 master: 2
select 'slave:',a from t1; SELECT 'slave:',a FROM t1 ORDER BY a;
slave: a slave: a
slave: 1 slave: 1
slave: 2 slave: 2
...@@ -123,10 +144,10 @@ set @xx=123; ...@@ -123,10 +144,10 @@ set @xx=123;
execute s1 using @xx; execute s1 using @xx;
f1(?) f1(?)
124 124
select 'master:',a from t1; SELECT 'master:',a FROM t1 ORDER BY a;
master: a master: a
master: 123 master: 123
select 'slave:',a from t1; SELECT 'slave:',a FROM t1 ORDER BY a;
slave: a slave: a
slave: 123 slave: 123
delete from t1; delete from t1;
...@@ -141,18 +162,18 @@ set spv= spv - 10; ...@@ -141,18 +162,18 @@ set spv= spv - 10;
end while; end while;
end// end//
call p1(15); call p1(15);
select 'master:',a from t1; SELECT 'master:',a FROM t1 ORDER BY a;
master: a master: a
master: 15
master: 15
master: 6 master: 6
master: 6 master: 6
select 'slave:',a from t1; master: 15
master: 15
SELECT 'slave:',a FROM t1 ORDER BY a;
slave: a slave: a
slave: 15
slave: 15
slave: 6 slave: 6
slave: 6 slave: 6
slave: 15
slave: 15
drop procedure p1; drop procedure p1;
drop function f1; drop function f1;
drop table t1,t2; drop table t1,t2;
...@@ -187,26 +208,26 @@ f1() ...@@ -187,26 +208,26 @@ f1()
0 0
set @x=30; set @x=30;
call p1(); call p1();
select 'master', a from t1; SELECT 'master', a FROM t1 ORDER BY a;
master a master a
master 20
master 10 master 10
master 11 master 11
master 100 master 20
master 101
master 30 master 30
master 31 master 31
master 100
master 101
master 101 master 101
master 102 master 102
select 'slave', a from t1; SELECT 'slave', a FROM t1 ORDER BY a;
slave a slave a
slave 20
slave 10 slave 10
slave 11 slave 11
slave 100 slave 20
slave 101
slave 30 slave 30
slave 31 slave 31
slave 100
slave 101
slave 101 slave 101
slave 102 slave 102
drop table t1; drop table t1;
......
##########################################
# Change Author: JBM
# Change Date: 2006-05-02
# Change: Added Order By for NDB testing
##########################################
# Test of replication of stored procedures (WL#2146 for MySQL 5.0) # Test of replication of stored procedures (WL#2146 for MySQL 5.0)
-- source include/master-slave.inc -- source include/master-slave.inc
...@@ -30,9 +36,9 @@ call p1(); ...@@ -30,9 +36,9 @@ call p1();
sync_slave_with_master; sync_slave_with_master;
connection slave; connection slave;
select * from t1; SELECT * FROM t1 ORDER BY a;
connection master; connection master;
delete from t1; SELECT * FROM t1 ORDER BY a;
# 2. Test SP variable name # 2. Test SP variable name
delimiter //; delimiter //;
...@@ -44,10 +50,10 @@ end// ...@@ -44,10 +50,10 @@ end//
delimiter ;// delimiter ;//
call p2(); call p2();
select * from t2; SELECT * FROM t2 ORDER BY a;
sync_slave_with_master; sync_slave_with_master;
connection slave; connection slave;
select * from t2; SELECT * FROM t2 ORDER BY a;
connection master; connection master;
drop procedure p1; drop procedure p1;
...@@ -78,19 +84,19 @@ end// ...@@ -78,19 +84,19 @@ end//
delimiter ;// delimiter ;//
call p1(f1(1), f1(2)); call p1(f1(1), f1(2));
select * from t1; SELECT * FROM t1 ORDER BY a;
create table t2(a int); create table t2(a int);
insert into t2 values (10),(11); insert into t2 values (10),(11);
select a,f1(a) from t2; SELECT a,f1(a) FROM t2 ORDER BY a;
# This shouldn't put separate 'call f1(3)' into binlog: # This shouldn't put separate 'call f1(3)' into binlog:
insert into t2 select f1(3); insert into t2 select f1(3);
select 'master:',a from t1; SELECT 'master:',a FROM t1 ORDER BY a;
sync_slave_with_master; sync_slave_with_master;
connection slave; connection slave;
select 'slave:',a from t1; SELECT 'slave:',a FROM t1 ORDER BY a;
connection master; connection master;
drop procedure p1; drop procedure p1;
...@@ -102,11 +108,11 @@ delete from t1; ...@@ -102,11 +108,11 @@ delete from t1;
insert into t2 values(1),(2); insert into t2 values(1),(2);
create view v1 as select f1(a) from t2; create view v1 as select f1(a) from t2;
select * from v1; select * from v1;
select 'master:',a from t1; SELECT 'master:',a FROM t1 ORDER BY a;
sync_slave_with_master; sync_slave_with_master;
connection slave; connection slave;
select 'slave:',a from t1; SELECT 'slave:',a FROM t1 ORDER BY a;
connection master; connection master;
drop view v1; drop view v1;
...@@ -116,11 +122,11 @@ delete from t1; ...@@ -116,11 +122,11 @@ delete from t1;
prepare s1 from 'select f1(?)'; prepare s1 from 'select f1(?)';
set @xx=123; set @xx=123;
execute s1 using @xx; execute s1 using @xx;
select 'master:',a from t1; SELECT 'master:',a FROM t1 ORDER BY a;
sync_slave_with_master; sync_slave_with_master;
connection slave; connection slave;
select 'slave:',a from t1; SELECT 'slave:',a FROM t1 ORDER BY a;
connection master; connection master;
delete from t1; delete from t1;
...@@ -140,10 +146,10 @@ begin ...@@ -140,10 +146,10 @@ begin
end// end//
delimiter ;// delimiter ;//
call p1(15); call p1(15);
select 'master:',a from t1; SELECT 'master:',a FROM t1 ORDER BY a;
sync_slave_with_master; sync_slave_with_master;
connection slave; connection slave;
select 'slave:',a from t1; SELECT 'slave:',a FROM t1 ORDER BY a;
connection master; connection master;
drop procedure p1; drop procedure p1;
...@@ -188,10 +194,10 @@ select f1(); ...@@ -188,10 +194,10 @@ select f1();
set @x=30; set @x=30;
call p1(); call p1();
select 'master', a from t1; SELECT 'master', a FROM t1 ORDER BY a;
sync_slave_with_master; sync_slave_with_master;
connection slave; connection slave;
select 'slave', a from t1; SELECT 'slave', a FROM t1 ORDER BY a;
connection master; connection master;
drop table t1; drop table t1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment