Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
9d1f5003
Commit
9d1f5003
authored
May 05, 2006
by
jmiller@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge jmiller@bk-internal.mysql.com:/home/bk/mysql-5.1-new
into mysql.com:/home/ndbdev/jmiller/clones/mysql-5.1-new
parents
f8c37502
614da47c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
75 additions
and
48 deletions
+75
-48
mysql-test/r/rpl_loaddatalocal.result
mysql-test/r/rpl_loaddatalocal.result
+2
-2
mysql-test/r/rpl_sp_effects.result
mysql-test/r/rpl_sp_effects.result
+49
-28
mysql-test/t/rpl_loaddatalocal.test
mysql-test/t/rpl_loaddatalocal.test
+2
-2
mysql-test/t/rpl_sp_effects.test
mysql-test/t/rpl_sp_effects.test
+22
-16
No files found.
mysql-test/r/rpl_loaddatalocal.result
View file @
9d1f5003
...
...
@@ -18,12 +18,12 @@ select * into outfile 'MYSQLTEST_VARDIR/master-data/rpl_loaddatalocal.select_out
drop table t1;
create table t1(a int primary key);
load data local infile 'MYSQLTEST_VARDIR/master-data/rpl_loaddatalocal.select_outfile' into table t1;
select * from t1
;
SELECT * FROM t1 ORDER BY a
;
a
1
2
3
select * from t1
;
SELECT * FROM t1 ORDER BY a
;
a
1
2
...
...
mysql-test/r/rpl_sp_effects.result
View file @
9d1f5003
...
...
@@ -19,24 +19,30 @@ set spv=spv+1;
end while;
end//
call p1();
select * from t1;
SELECT * FROM t1 ORDER BY a;
a
1
2
3
4
5
SELECT * FROM t1 ORDER BY a;
a
1
2
3
4
5
delete from t1;
create procedure p2()
begin
declare a int default 4;
create table t2 as select a;
end//
call p2();
select * from t2
;
SELECT * FROM t2 ORDER BY a
;
a
4
select * from t2
;
SELECT * FROM t2 ORDER BY a
;
a
4
drop procedure p1;
...
...
@@ -61,43 +67,58 @@ end//
call p1(f1(1), f1(2));
yes
yes
select * from t1
;
SELECT * FROM t1 ORDER BY a
;
a
1
1
2
2
3
4
5
5
6
7
8
create table t2(a int);
insert into t2 values (10),(11);
select a,f1(a) from t2
;
SELECT a,f1(a) FROM t2 ORDER BY a
;
a f1(a)
10 11
11 12
insert into t2 select f1(3);
select 'master:',a from t1
;
SELECT 'master:',a FROM t1 ORDER BY a
;
master: a
master: 1
master: 1
master: 2
master: 2
master: 3
master: 3
master: 4
master: 5
master: 5
master: 6
master: 7
master: 8
master: 10
master: 11
master: 3
select 'slave:',a from t1;
SELECT 'slave:',a FROM t1 ORDER BY a;
slave: a
slave: 1
slave: 1
slave: 2
slave: 2
slave: 3
slave: 3
slave: 4
slave: 5
slave: 5
slave: 6
slave: 7
slave: 8
slave: 10
slave: 11
slave: 3
drop procedure p1;
delete from t1;
delete from t2;
...
...
@@ -108,11 +129,11 @@ select * from v1;
f1(a)
2
3
select 'master:',a from t1
;
SELECT 'master:',a FROM t1 ORDER BY a
;
master: a
master: 1
master: 2
select 'slave:',a from t1
;
SELECT 'slave:',a FROM t1 ORDER BY a
;
slave: a
slave: 1
slave: 2
...
...
@@ -123,10 +144,10 @@ set @xx=123;
execute s1 using @xx;
f1(?)
124
select 'master:',a from t1
;
SELECT 'master:',a FROM t1 ORDER BY a
;
master: a
master: 123
select 'slave:',a from t1
;
SELECT 'slave:',a FROM t1 ORDER BY a
;
slave: a
slave: 123
delete from t1;
...
...
@@ -141,18 +162,18 @@ set spv= spv - 10;
end while;
end//
call p1(15);
select 'master:',a from t1
;
SELECT 'master:',a FROM t1 ORDER BY a
;
master: a
master: 15
master: 15
master: 6
master: 6
select 'slave:',a from t1;
master: 15
master: 15
SELECT 'slave:',a FROM t1 ORDER BY a;
slave: a
slave: 15
slave: 15
slave: 6
slave: 6
slave: 15
slave: 15
drop procedure p1;
drop function f1;
drop table t1,t2;
...
...
@@ -187,26 +208,26 @@ f1()
0
set @x=30;
call p1();
select 'master', a from t1
;
SELECT 'master', a FROM t1 ORDER BY a
;
master a
master 20
master 10
master 11
master 100
master 101
master 20
master 30
master 31
master 100
master 101
master 101
master 102
select 'slave', a from t1
;
SELECT 'slave', a FROM t1 ORDER BY a
;
slave a
slave 20
slave 10
slave 11
slave 100
slave 101
slave 20
slave 30
slave 31
slave 100
slave 101
slave 101
slave 102
drop table t1;
...
...
mysql-test/t/rpl_loaddatalocal.test
View file @
9d1f5003
...
...
@@ -53,11 +53,11 @@ create table t1(a int primary key);
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
eval
load
data
local
infile
'$MYSQLTEST_VARDIR/master-data/rpl_loaddatalocal.select_outfile'
into
table
t1
;
system
rm
$MYSQLTEST_VARDIR
/
master
-
data
/
rpl_loaddatalocal
.
select_outfile
;
select
*
from
t1
;
SELECT
*
FROM
t1
ORDER
BY
a
;
save_master_pos
;
connection
slave
;
sync_with_master
;
select
*
from
t1
;
SELECT
*
FROM
t1
ORDER
BY
a
;
connection
master
;
drop
table
t1
;
save_master_pos
;
...
...
mysql-test/t/rpl_sp_effects.test
View file @
9d1f5003
##########################################
# 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)
--
source
include
/
master
-
slave
.
inc
...
...
@@ -30,9 +36,9 @@ call p1();
sync_slave_with_master
;
connection
slave
;
select
*
from
t1
;
SELECT
*
FROM
t1
ORDER
BY
a
;
connection
master
;
delete
from
t1
;
SELECT
*
FROM
t1
ORDER
BY
a
;
# 2. Test SP variable name
delimiter
//;
...
...
@@ -44,10 +50,10 @@ end//
delimiter
;
//
call
p2
();
select
*
from
t2
;
SELECT
*
FROM
t2
ORDER
BY
a
;
sync_slave_with_master
;
connection
slave
;
select
*
from
t2
;
SELECT
*
FROM
t2
ORDER
BY
a
;
connection
master
;
drop
procedure
p1
;
...
...
@@ -78,19 +84,19 @@ end//
delimiter
;
//
call
p1
(
f1
(
1
),
f1
(
2
));
select
*
from
t1
;
SELECT
*
FROM
t1
ORDER
BY
a
;
create
table
t2
(
a
int
);
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:
insert
into
t2
select
f1
(
3
);
select
'master:'
,
a
from
t1
;
SELECT
'master:'
,
a
FROM
t1
ORDER
BY
a
;
sync_slave_with_master
;
connection
slave
;
select
'slave:'
,
a
from
t1
;
SELECT
'slave:'
,
a
FROM
t1
ORDER
BY
a
;
connection
master
;
drop
procedure
p1
;
...
...
@@ -102,11 +108,11 @@ delete from t1;
insert
into
t2
values
(
1
),(
2
);
create
view
v1
as
select
f1
(
a
)
from
t2
;
select
*
from
v1
;
select
'master:'
,
a
from
t1
;
SELECT
'master:'
,
a
FROM
t1
ORDER
BY
a
;
sync_slave_with_master
;
connection
slave
;
select
'slave:'
,
a
from
t1
;
SELECT
'slave:'
,
a
FROM
t1
ORDER
BY
a
;
connection
master
;
drop
view
v1
;
...
...
@@ -116,11 +122,11 @@ delete from t1;
prepare
s1
from
'select f1(?)'
;
set
@
xx
=
123
;
execute
s1
using
@
xx
;
select
'master:'
,
a
from
t1
;
SELECT
'master:'
,
a
FROM
t1
ORDER
BY
a
;
sync_slave_with_master
;
connection
slave
;
select
'slave:'
,
a
from
t1
;
SELECT
'slave:'
,
a
FROM
t1
ORDER
BY
a
;
connection
master
;
delete
from
t1
;
...
...
@@ -140,10 +146,10 @@ begin
end
//
delimiter
;
//
call
p1
(
15
);
select
'master:'
,
a
from
t1
;
SELECT
'master:'
,
a
FROM
t1
ORDER
BY
a
;
sync_slave_with_master
;
connection
slave
;
select
'slave:'
,
a
from
t1
;
SELECT
'slave:'
,
a
FROM
t1
ORDER
BY
a
;
connection
master
;
drop
procedure
p1
;
...
...
@@ -188,10 +194,10 @@ select f1();
set
@
x
=
30
;
call
p1
();
select
'master'
,
a
from
t1
;
SELECT
'master'
,
a
FROM
t1
ORDER
BY
a
;
sync_slave_with_master
;
connection
slave
;
select
'slave'
,
a
from
t1
;
SELECT
'slave'
,
a
FROM
t1
ORDER
BY
a
;
connection
master
;
drop
table
t1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment