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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
1eb9375a
Commit
1eb9375a
authored
Aug 05, 2010
by
Evgeny Potemkin
Browse files
Options
Browse Files
Download
Plain Diff
Auto-merged.
parents
424b68d7
265873c7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
9 deletions
+13
-9
.bzr-mysql/default.conf
.bzr-mysql/default.conf
+1
-1
mysql-test/suite/federated/federated_server.result
mysql-test/suite/federated/federated_server.result
+6
-6
mysql-test/suite/federated/federated_server.test
mysql-test/suite/federated/federated_server.test
+6
-2
No files found.
.bzr-mysql/default.conf
View file @
1eb9375a
[
MYSQL
]
[
MYSQL
]
post_commit_to
=
"commits@lists.mysql.com"
post_commit_to
=
"commits@lists.mysql.com"
post_push_to
=
"commits@lists.mysql.com"
post_push_to
=
"commits@lists.mysql.com"
tree_name
=
"mysql-
trunk
-bugfixing"
tree_name
=
"mysql-
5.5
-bugfixing"
mysql-test/suite/federated/federated_server.result
View file @
1eb9375a
...
@@ -54,7 +54,7 @@ PASSWORD '',
...
@@ -54,7 +54,7 @@ PASSWORD '',
PORT SLAVE_PORT,
PORT SLAVE_PORT,
SOCKET '',
SOCKET '',
OWNER 'root');
OWNER 'root');
select * from mysql.servers;
select * from mysql.servers
order by Server_name
;
Server_name Host Db Username Password Port Socket Wrapper Owner
Server_name Host Db Username Password Port Socket Wrapper Owner
server_one 127.0.0.1 first_db root SLAVE_PORT mysql root
server_one 127.0.0.1 first_db root SLAVE_PORT mysql root
server_two 127.0.0.1 second_db root SLAVE_PORT mysql root
server_two 127.0.0.1 second_db root SLAVE_PORT mysql root
...
@@ -154,7 +154,7 @@ id name
...
@@ -154,7 +154,7 @@ id name
drop table federated.t1;
drop table federated.t1;
drop server 'server_one';
drop server 'server_one';
drop server 'server_two';
drop server 'server_two';
select * from mysql.servers;
select * from mysql.servers
order by Server_name
;
Server_name Host Db Username Password Port Socket Wrapper Owner
Server_name Host Db Username Password Port Socket Wrapper Owner
drop table first_db.t1;
drop table first_db.t1;
drop table second_db.t1;
drop table second_db.t1;
...
@@ -254,6 +254,8 @@ password '', socket '', owner '', port 3306);
...
@@ -254,6 +254,8 @@ password '', socket '', owner '', port 3306);
drop server 's1';
drop server 's1';
# End of 5.1 tests
# End of 5.1 tests
use test;
use test;
create table t1(a int);
insert into t1 values (1);
create procedure p1 ()
create procedure p1 ()
begin
begin
DECLARE v INT DEFAULT 0;
DECLARE v INT DEFAULT 0;
...
@@ -268,15 +270,13 @@ ALTER SERVER s OPTIONS (USER 'Remote');
...
@@ -268,15 +270,13 @@ ALTER SERVER s OPTIONS (USER 'Remote');
DROP SERVER s;
DROP SERVER s;
SET v = v + 1;
SET v = v + 1;
END WHILE;
END WHILE;
select a into @a from t1; # Just reset warnings
END//
END//
use test;
use test;
call p1();
call p1();
call p1();
call p1();
Warnings:
Error 1477 The foreign server name you are trying to reference does not exist. Data source error: s
Warnings:
Error 1476 The foreign server, s, you are trying to create already exists.
drop procedure p1;
drop procedure p1;
drop table t1;
drop server if exists s;
drop server if exists s;
DROP TABLE IF EXISTS federated.t1;
DROP TABLE IF EXISTS federated.t1;
DROP DATABASE federated;
DROP DATABASE federated;
...
...
mysql-test/suite/federated/federated_server.test
View file @
1eb9375a
...
@@ -62,7 +62,7 @@ eval create server 'server_two' foreign data wrapper 'mysql' options
...
@@ -62,7 +62,7 @@ eval create server 'server_two' foreign data wrapper 'mysql' options
OWNER
'root'
);
OWNER
'root'
);
--
replace_result
$SLAVE_MYPORT
SLAVE_PORT
--
replace_result
$SLAVE_MYPORT
SLAVE_PORT
eval
select
*
from
mysql
.
servers
;
eval
select
*
from
mysql
.
servers
order
by
Server_name
;
DROP
TABLE
IF
EXISTS
federated
.
old
;
DROP
TABLE
IF
EXISTS
federated
.
old
;
--
replace_result
$SLAVE_MYPORT
SLAVE_PORT
--
replace_result
$SLAVE_MYPORT
SLAVE_PORT
...
@@ -147,7 +147,7 @@ drop table federated.t1;
...
@@ -147,7 +147,7 @@ drop table federated.t1;
drop
server
'server_one'
;
drop
server
'server_one'
;
drop
server
'server_two'
;
drop
server
'server_two'
;
select
*
from
mysql
.
servers
;
select
*
from
mysql
.
servers
order
by
Server_name
;
connection
slave
;
connection
slave
;
drop
table
first_db
.
t1
;
drop
table
first_db
.
t1
;
...
@@ -301,6 +301,8 @@ drop server 's1';
...
@@ -301,6 +301,8 @@ drop server 's1';
connect
(
other
,
localhost
,
root
,,);
connect
(
other
,
localhost
,
root
,,);
connection
master
;
connection
master
;
use
test
;
use
test
;
create
table
t1
(
a
int
);
insert
into
t1
values
(
1
);
delimiter
//;
delimiter
//;
create
procedure
p1
()
create
procedure
p1
()
begin
begin
...
@@ -316,6 +318,7 @@ begin
...
@@ -316,6 +318,7 @@ begin
DROP
SERVER
s
;
DROP
SERVER
s
;
SET
v
=
v
+
1
;
SET
v
=
v
+
1
;
END
WHILE
;
END
WHILE
;
select
a
into
@
a
from
t1
;
# Just reset warnings
END
//
END
//
delimiter
;
//
delimiter
;
//
connection
other
;
connection
other
;
...
@@ -326,6 +329,7 @@ call p1();
...
@@ -326,6 +329,7 @@ call p1();
connection
other
;
connection
other
;
reap
;
reap
;
drop
procedure
p1
;
drop
procedure
p1
;
drop
table
t1
;
drop
server
if
exists
s
;
drop
server
if
exists
s
;
...
...
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