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
38701393
Commit
38701393
authored
Jul 31, 2010
by
Alexander Nozdrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix federated.federated_server.test.
parent
d3f4b07e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
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.
mysql-test/suite/federated/federated_server.result
View file @
38701393
...
...
@@ -54,7 +54,7 @@ PASSWORD '',
PORT SLAVE_PORT,
SOCKET '',
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_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
...
...
@@ -154,7 +154,7 @@ id name
drop table federated.t1;
drop server 'server_one';
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
drop table first_db.t1;
drop table second_db.t1;
...
...
@@ -254,6 +254,8 @@ password '', socket '', owner '', port 3306);
drop server 's1';
# End of 5.1 tests
use test;
create table t1(a int);
insert into t1 values (1);
create procedure p1 ()
begin
DECLARE v INT DEFAULT 0;
...
...
@@ -268,15 +270,13 @@ ALTER SERVER s OPTIONS (USER 'Remote');
DROP SERVER s;
SET v = v + 1;
END WHILE;
select a into @a from t1; # Just reset warnings
END//
use test;
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 table t1;
drop server if exists s;
DROP TABLE IF EXISTS federated.t1;
DROP DATABASE federated;
...
...
mysql-test/suite/federated/federated_server.test
View file @
38701393
...
...
@@ -62,7 +62,7 @@ eval create server 'server_two' foreign data wrapper 'mysql' options
OWNER
'root'
);
--
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
;
--
replace_result
$SLAVE_MYPORT
SLAVE_PORT
...
...
@@ -147,7 +147,7 @@ drop table federated.t1;
drop
server
'server_one'
;
drop
server
'server_two'
;
select
*
from
mysql
.
servers
;
select
*
from
mysql
.
servers
order
by
Server_name
;
connection
slave
;
drop
table
first_db
.
t1
;
...
...
@@ -301,6 +301,8 @@ drop server 's1';
connect
(
other
,
localhost
,
root
,,);
connection
master
;
use
test
;
create
table
t1
(
a
int
);
insert
into
t1
values
(
1
);
delimiter
//;
create
procedure
p1
()
begin
...
...
@@ -316,6 +318,7 @@ begin
DROP
SERVER
s
;
SET
v
=
v
+
1
;
END
WHILE
;
select
a
into
@
a
from
t1
;
# Just reset warnings
END
//
delimiter
;
//
connection
other
;
...
...
@@ -326,6 +329,7 @@ call p1();
connection
other
;
reap
;
drop
procedure
p1
;
drop
table
t1
;
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