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
86637b25
Commit
86637b25
authored
Oct 09, 2016
by
Hartmut Holzgraefe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-726 - added regression test case
parent
3234fafe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
mysql-test/r/create_drop_server.result
mysql-test/r/create_drop_server.result
+9
-0
mysql-test/t/create_drop_server.test
mysql-test/t/create_drop_server.test
+9
-0
No files found.
mysql-test/r/create_drop_server.result
View file @
86637b25
...
@@ -35,3 +35,12 @@ SELECT server_name, username, db FROM mysql.servers;
...
@@ -35,3 +35,12 @@ SELECT server_name, username, db FROM mysql.servers;
server_name username db
server_name username db
server_1 mysqltest_1 test4
server_1 mysqltest_1 test4
DROP SERVER server_1;
DROP SERVER server_1;
CREATE SERVER server_1 FOREIGN DATA WRAPPER mysql OPTIONS (USER 'Remote', HOST 'Server.Example.Com', DATABASE 'test');
SELECT Host FROM mysql.servers WHERE Server_Name = 'server_1';
Host
server.example.com
ALTER SERVER server_1 OPTIONS(HOST 'Server.Example.Org');
SELECT Host FROM mysql.servers WHERE Server_Name = 'server_1';
Host
server.example.org
DROP SERVER server_1;
mysql-test/t/create_drop_server.test
View file @
86637b25
...
@@ -23,3 +23,12 @@ CREATE OR REPLACE SERVER IF NOT EXISTS server_1 FOREIGN DATA WRAPPER mysql OPTIO
...
@@ -23,3 +23,12 @@ CREATE OR REPLACE SERVER IF NOT EXISTS server_1 FOREIGN DATA WRAPPER mysql OPTIO
CREATE
OR
REPLACE
SERVER
server_1
FOREIGN
DATA
WRAPPER
mysql
OPTIONS
(
USER
'mysqltest_1'
,
HOST
'localhost'
,
DATABASE
'test4'
);
CREATE
OR
REPLACE
SERVER
server_1
FOREIGN
DATA
WRAPPER
mysql
OPTIONS
(
USER
'mysqltest_1'
,
HOST
'localhost'
,
DATABASE
'test4'
);
SELECT
server_name
,
username
,
db
FROM
mysql
.
servers
;
SELECT
server_name
,
username
,
db
FROM
mysql
.
servers
;
DROP
SERVER
server_1
;
DROP
SERVER
server_1
;
# MDEV-726 convert host names to lowercase
CREATE
SERVER
server_1
FOREIGN
DATA
WRAPPER
mysql
OPTIONS
(
USER
'Remote'
,
HOST
'Server.Example.Com'
,
DATABASE
'test'
);
SELECT
Host
FROM
mysql
.
servers
WHERE
Server_Name
=
'server_1'
;
ALTER
SERVER
server_1
OPTIONS
(
HOST
'Server.Example.Org'
);
SELECT
Host
FROM
mysql
.
servers
WHERE
Server_Name
=
'server_1'
;
DROP
SERVER
server_1
;
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