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
0cab9beb
Commit
0cab9beb
authored
Dec 12, 2006
by
patg@radha.myhome.westell.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WL# 3031
Added --replace-result to avoid hard-coding of port
parent
b892f9ad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
mysql-test/r/federated_server.result
mysql-test/r/federated_server.result
+4
-4
mysql-test/t/federated_server.test
mysql-test/t/federated_server.test
+4
-0
No files found.
mysql-test/r/federated_server.result
View file @
0cab9beb
...
...
@@ -35,7 +35,7 @@ create server 'server_one' foreign data wrapper 'mysql' options
DATABASE 'first_db',
USER 'root',
PASSWORD '',
PORT
9308
,
PORT
SLAVE_PORT
,
SOCKET '',
OWNER 'root');
drop server if exists 'server_two';
...
...
@@ -44,7 +44,7 @@ create server 'server_two' foreign data wrapper 'mysql' options
DATABASE 'second_db',
USER 'root',
PASSWORD '',
PORT
9308
,
PORT
SLAVE_PORT
,
SOCKET '',
OWNER 'root');
select * from mysql.servers;
...
...
@@ -60,7 +60,7 @@ CREATE TABLE federated.old (
`name` varchar(64) NOT NULL default ''
)
ENGINE="FEDERATED" DEFAULT CHARSET=latin1
CONNECTION='mysql://root@127.0.0.1:
9308
/first_db/t1';
CONNECTION='mysql://root@127.0.0.1:
SLAVE_PORT
/first_db/t1';
INSERT INTO federated.old (id, name) values (1, 'federated.old url');
SELECT * FROM federated.old;
id name
...
...
@@ -73,7 +73,7 @@ CREATE TABLE federated.old2 (
`name` varchar(64) NOT NULL default ''
)
ENGINE="FEDERATED" DEFAULT CHARSET=latin1
CONNECTION='mysql://root@127.0.0.1:
9308
/second_db/t1';
CONNECTION='mysql://root@127.0.0.1:
SLAVE_PORT
/second_db/t1';
INSERT INTO federated.old2 (id, name) values (1, 'federated.old2 url');
DROP TABLE IF EXISTS federated.t1;
Warnings:
...
...
mysql-test/t/federated_server.test
View file @
0cab9beb
...
...
@@ -26,6 +26,7 @@ CREATE TABLE second_db.t1 (
connection
master
;
drop
server
if
exists
'server_one'
;
--
replace_result
$SLAVE_MYPORT
SLAVE_PORT
eval
create
server
'server_one'
foreign
data
wrapper
'mysql'
options
(
HOST
'127.0.0.1'
,
DATABASE
'first_db'
,
...
...
@@ -36,6 +37,7 @@ eval create server 'server_one' foreign data wrapper 'mysql' options
OWNER
'root'
);
drop
server
if
exists
'server_two'
;
--
replace_result
$SLAVE_MYPORT
SLAVE_PORT
eval
create
server
'server_two'
foreign
data
wrapper
'mysql'
options
(
HOST
'127.0.0.1'
,
DATABASE
'second_db'
,
...
...
@@ -48,6 +50,7 @@ eval create server 'server_two' foreign data wrapper 'mysql' options
select
*
from
mysql
.
servers
;
DROP
TABLE
IF
EXISTS
federated
.
old
;
--
replace_result
$SLAVE_MYPORT
SLAVE_PORT
eval
CREATE
TABLE
federated
.
old
(
`id`
int
(
20
)
NOT
NULL
,
`name`
varchar
(
64
)
NOT
NULL
default
''
...
...
@@ -60,6 +63,7 @@ INSERT INTO federated.old (id, name) values (1, 'federated.old url');
SELECT
*
FROM
federated
.
old
;
DROP
TABLE
IF
EXISTS
federated
.
old2
;
--
replace_result
$SLAVE_MYPORT
SLAVE_PORT
eval
CREATE
TABLE
federated
.
old2
(
`id`
int
(
20
)
NOT
NULL
,
`name`
varchar
(
64
)
NOT
NULL
default
''
...
...
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