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
1ad79c81
Commit
1ad79c81
authored
Jun 18, 2019
by
Anel Husakovic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-19679 - CREATE SERVER needs tweaks for compatibility with CONNECT engine
parent
fd5cd073
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
18 additions
and
19 deletions
+18
-19
mysql-test/r/create_drop_server.result
mysql-test/r/create_drop_server.result
+2
-2
mysql-test/r/system_mysql_db.result
mysql-test/r/system_mysql_db.result
+2
-2
mysql-test/r/system_mysql_db_fix40123.result
mysql-test/r/system_mysql_db_fix40123.result
+2
-2
mysql-test/suite/funcs_1/r/is_columns_mysql.result
mysql-test/suite/funcs_1/r/is_columns_mysql.result
+4
-4
mysql-test/suite/funcs_1/r/is_columns_mysql_embedded.result
mysql-test/suite/funcs_1/r/is_columns_mysql_embedded.result
+4
-4
mysql-test/suite/funcs_1/r/is_tables_mysql.result
mysql-test/suite/funcs_1/r/is_tables_mysql.result
+1
-1
mysql-test/suite/funcs_1/r/is_tables_mysql_embedded.result
mysql-test/suite/funcs_1/r/is_tables_mysql_embedded.result
+2
-2
scripts/mysql_system_tables.sql
scripts/mysql_system_tables.sql
+1
-1
sql/sql_yacc.yy
sql/sql_yacc.yy
+0
-1
No files found.
mysql-test/r/create_drop_server.result
View file @
1ad79c81
...
...
@@ -38,9 +38,9 @@ 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.c
om
Server.Example.C
om
ALTER SERVER server_1 OPTIONS(HOST 'Server.Example.Org');
SELECT Host FROM mysql.servers WHERE Server_Name = 'server_1';
Host
server.example.o
rg
Server.Example.O
rg
DROP SERVER server_1;
mysql-test/r/system_mysql_db.result
View file @
1ad79c81
...
...
@@ -187,14 +187,14 @@ show create table servers;
Table Create Table
servers CREATE TABLE `servers` (
`Server_name` char(64) NOT NULL DEFAULT '',
`Host`
char(64
) NOT NULL DEFAULT '',
`Host`
varchar(2048
) NOT NULL DEFAULT '',
`Db` char(64) NOT NULL DEFAULT '',
`Username` char(80) NOT NULL DEFAULT '',
`Password` char(64) NOT NULL DEFAULT '',
`Port` int(4) NOT NULL DEFAULT 0,
`Socket` char(64) NOT NULL DEFAULT '',
`Wrapper` char(64) NOT NULL DEFAULT '',
`Owner`
char(64
) NOT NULL DEFAULT '',
`Owner`
varchar(512
) NOT NULL DEFAULT '',
PRIMARY KEY (`Server_name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='MySQL Foreign Servers table'
show create table proc;
...
...
mysql-test/r/system_mysql_db_fix40123.result
View file @
1ad79c81
...
...
@@ -187,14 +187,14 @@ show create table servers;
Table Create Table
servers CREATE TABLE `servers` (
`Server_name` char(64) NOT NULL DEFAULT '',
`Host`
char(64
) NOT NULL DEFAULT '',
`Host`
varchar(2048
) NOT NULL DEFAULT '',
`Db` char(64) NOT NULL DEFAULT '',
`Username` char(80) NOT NULL DEFAULT '',
`Password` char(64) NOT NULL DEFAULT '',
`Port` int(4) NOT NULL DEFAULT 0,
`Socket` char(64) NOT NULL DEFAULT '',
`Wrapper` char(64) NOT NULL DEFAULT '',
`Owner`
char(64
) NOT NULL DEFAULT '',
`Owner`
varchar(512
) NOT NULL DEFAULT '',
PRIMARY KEY (`Server_name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='MySQL Foreign Servers table'
show create table proc;
...
...
mysql-test/suite/funcs_1/r/is_columns_mysql.result
View file @
1ad79c81
...
...
@@ -173,8 +173,8 @@ def mysql roles_mapping Host 1 '' NO char 60 180 NULL NULL NULL utf8 utf8_bin ch
def mysql roles_mapping Role 3 '' NO char 80 240 NULL NULL NULL utf8 utf8_bin char(80) PRI select,insert,update,references NEVER NULL
def mysql roles_mapping User 2 '' NO char 80 240 NULL NULL NULL utf8 utf8_bin char(80) PRI select,insert,update,references NEVER NULL
def mysql servers Db 3 '' NO char 64 192 NULL NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references NEVER NULL
def mysql servers Host 2 '' NO
char 64 192 NULL NULL NULL utf8 utf8_general_ci char(64
) select,insert,update,references NEVER NULL
def mysql servers Owner 9 '' NO
char 64 192 NULL NULL NULL utf8 utf8_general_ci char(64
) select,insert,update,references NEVER NULL
def mysql servers Host 2 '' NO
varchar 2048 6144 NULL NULL NULL utf8 utf8_general_ci varchar(2048
) select,insert,update,references NEVER NULL
def mysql servers Owner 9 '' NO
varchar 512 1536 NULL NULL NULL utf8 utf8_general_ci varchar(512
) select,insert,update,references NEVER NULL
def mysql servers Password 5 '' NO char 64 192 NULL NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references NEVER NULL
def mysql servers Port 6 0 NO int NULL NULL 10 0 NULL NULL NULL int(4) select,insert,update,references NEVER NULL
def mysql servers Server_name 1 '' NO char 64 192 NULL NULL NULL utf8 utf8_general_ci char(64) PRI select,insert,update,references NEVER NULL
...
...
@@ -508,14 +508,14 @@ NULL mysql proxies_priv Timestamp timestamp NULL NULL NULL NULL timestamp
3.0000 mysql roles_mapping Role char 80 240 utf8 utf8_bin char(80)
3.0000 mysql roles_mapping Admin_option enum 1 3 utf8 utf8_general_ci enum('N','Y')
3.0000 mysql servers Server_name char 64 192 utf8 utf8_general_ci char(64)
3.0000 mysql servers Host
char 64 192 utf8 utf8_general_ci char(64
)
3.0000 mysql servers Host
varchar 2048 6144 utf8 utf8_general_ci varchar(2048
)
3.0000 mysql servers Db char 64 192 utf8 utf8_general_ci char(64)
3.0000 mysql servers Username char 80 240 utf8 utf8_general_ci char(80)
3.0000 mysql servers Password char 64 192 utf8 utf8_general_ci char(64)
NULL mysql servers Port int NULL NULL NULL NULL int(4)
3.0000 mysql servers Socket char 64 192 utf8 utf8_general_ci char(64)
3.0000 mysql servers Wrapper char 64 192 utf8 utf8_general_ci char(64)
3.0000 mysql servers Owner
char 64 192 utf8 utf8_general_ci char(64
)
3.0000 mysql servers Owner
varchar 512 1536 utf8 utf8_general_ci varchar(512
)
NULL mysql slow_log start_time timestamp NULL NULL NULL NULL timestamp(6)
1.0000 mysql slow_log user_host mediumtext 16777215 16777215 utf8 utf8_general_ci mediumtext
NULL mysql slow_log query_time time NULL NULL NULL NULL time(6)
...
...
mysql-test/suite/funcs_1/r/is_columns_mysql_embedded.result
View file @
1ad79c81
...
...
@@ -159,8 +159,8 @@ def mysql roles_mapping Host 1 '' NO char 60 180 NULL NULL NULL utf8 utf8_bin ch
def mysql roles_mapping Role 3 '' NO char 80 240 NULL NULL NULL utf8 utf8_bin char(80) PRI NEVER NULL
def mysql roles_mapping User 2 '' NO char 80 240 NULL NULL NULL utf8 utf8_bin char(80) PRI NEVER NULL
def mysql servers Db 3 '' NO char 64 192 NULL NULL NULL utf8 utf8_general_ci char(64) NEVER NULL
def mysql servers Host 2 '' NO
char 64 192 NULL NULL NULL utf8 utf8_general_ci char(64
) NEVER NULL
def mysql servers Owner 9 '' NO
char 64 192 NULL NULL NULL utf8 utf8_general_ci char(64
) NEVER NULL
def mysql servers Host 2 '' NO
varchar 2048 6144 NULL NULL NULL utf8 utf8_general_ci varchar(2048
) NEVER NULL
def mysql servers Owner 9 '' NO
varchar 512 1536 NULL NULL NULL utf8 utf8_general_ci varchar(512
) NEVER NULL
def mysql servers Password 5 '' NO char 64 192 NULL NULL NULL utf8 utf8_general_ci char(64) NEVER NULL
def mysql servers Port 6 0 NO int NULL NULL 10 0 NULL NULL NULL int(4) NEVER NULL
def mysql servers Server_name 1 '' NO char 64 192 NULL NULL NULL utf8 utf8_general_ci char(64) PRI NEVER NULL
...
...
@@ -492,14 +492,14 @@ NULL mysql proxies_priv Timestamp timestamp NULL NULL NULL NULL timestamp
3.0000 mysql roles_mapping Role char 80 240 utf8 utf8_bin char(80)
3.0000 mysql roles_mapping Admin_option enum 1 3 utf8 utf8_general_ci enum('N','Y')
3.0000 mysql servers Server_name char 64 192 utf8 utf8_general_ci char(64)
3.0000 mysql servers Host
char 64 192 utf8 utf8_general_ci char(64
)
3.0000 mysql servers Host
varchar 2048 6144 utf8 utf8_general_ci varchar(2048
)
3.0000 mysql servers Db char 64 192 utf8 utf8_general_ci char(64)
3.0000 mysql servers Username char 80 240 utf8 utf8_general_ci char(80)
3.0000 mysql servers Password char 64 192 utf8 utf8_general_ci char(64)
NULL mysql servers Port int NULL NULL NULL NULL int(4)
3.0000 mysql servers Socket char 64 192 utf8 utf8_general_ci char(64)
3.0000 mysql servers Wrapper char 64 192 utf8 utf8_general_ci char(64)
3.0000 mysql servers Owner
char 64 192 utf8 utf8_general_ci char(64
)
3.0000 mysql servers Owner
varchar 512 1536 utf8 utf8_general_ci varchar(512
)
NULL mysql slow_log start_time timestamp NULL NULL NULL NULL timestamp(6)
1.0000 mysql slow_log user_host mediumtext 16777215 16777215 utf8 utf8_general_ci mediumtext
NULL mysql slow_log query_time time NULL NULL NULL NULL time(6)
...
...
mysql-test/suite/funcs_1/r/is_tables_mysql.result
View file @
1ad79c81
...
...
@@ -476,7 +476,7 @@ TABLE_NAME servers
TABLE_TYPE BASE TABLE
ENGINE MYISAM_OR_MARIA
VERSION 10
ROW_FORMAT
Fixed
ROW_FORMAT
DYNAMIC_OR_PAGE
TABLE_ROWS #TBLR#
AVG_ROW_LENGTH #ARL#
DATA_LENGTH #DL#
...
...
mysql-test/suite/funcs_1/r/is_tables_mysql_embedded.result
View file @
1ad79c81
...
...
@@ -476,7 +476,7 @@ TABLE_NAME servers
TABLE_TYPE BASE TABLE
ENGINE MYISAM_OR_MARIA
VERSION 10
ROW_FORMAT
Fixed
ROW_FORMAT
DYNAMIC_OR_PAGE
TABLE_ROWS #TBLR#
AVG_ROW_LENGTH #ARL#
DATA_LENGTH #DL#
...
...
@@ -1180,7 +1180,7 @@ TABLE_NAME servers
TABLE_TYPE BASE TABLE
ENGINE MYISAM_OR_MARIA
VERSION 10
ROW_FORMAT
Fixed
ROW_FORMAT
DYNAMIC_OR_PAGE
TABLE_ROWS #TBLR#
AVG_ROW_LENGTH #ARL#
DATA_LENGTH #DL#
...
...
scripts/mysql_system_tables.sql
View file @
1ad79c81
...
...
@@ -46,7 +46,7 @@ CREATE TABLE IF NOT EXISTS func ( name char(64) binary DEFAULT '' NOT NULL, ret
CREATE
TABLE
IF
NOT
EXISTS
plugin
(
name
varchar
(
64
)
DEFAULT
''
NOT
NULL
,
dl
varchar
(
128
)
DEFAULT
''
NOT
NULL
,
PRIMARY
KEY
(
name
)
)
engine
=
MyISAM
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
comment
=
'MySQL plugins'
;
CREATE
TABLE
IF
NOT
EXISTS
servers
(
Server_name
char
(
64
)
NOT
NULL
DEFAULT
''
,
Host
char
(
64
)
NOT
NULL
DEFAULT
''
,
Db
char
(
64
)
NOT
NULL
DEFAULT
''
,
Username
char
(
80
)
NOT
NULL
DEFAULT
''
,
Password
char
(
64
)
NOT
NULL
DEFAULT
''
,
Port
INT
(
4
)
NOT
NULL
DEFAULT
'0'
,
Socket
char
(
64
)
NOT
NULL
DEFAULT
''
,
Wrapper
char
(
64
)
NOT
NULL
DEFAULT
''
,
Owner
char
(
64
)
NOT
NULL
DEFAULT
''
,
PRIMARY
KEY
(
Server_name
))
CHARACTER
SET
utf8
comment
=
'MySQL Foreign Servers table'
;
CREATE
TABLE
IF
NOT
EXISTS
servers
(
Server_name
char
(
64
)
NOT
NULL
DEFAULT
''
,
Host
varchar
(
2048
)
NOT
NULL
DEFAULT
''
,
Db
char
(
64
)
NOT
NULL
DEFAULT
''
,
Username
char
(
80
)
NOT
NULL
DEFAULT
''
,
Password
char
(
64
)
NOT
NULL
DEFAULT
''
,
Port
INT
(
4
)
NOT
NULL
DEFAULT
'0'
,
Socket
char
(
64
)
NOT
NULL
DEFAULT
''
,
Wrapper
char
(
64
)
NOT
NULL
DEFAULT
''
,
Owner
varchar
(
512
)
NOT
NULL
DEFAULT
''
,
PRIMARY
KEY
(
Server_name
))
CHARACTER
SET
utf8
comment
=
'MySQL Foreign Servers table'
;
CREATE
TABLE
IF
NOT
EXISTS
tables_priv
(
Host
char
(
60
)
binary
DEFAULT
''
NOT
NULL
,
Db
char
(
64
)
binary
DEFAULT
''
NOT
NULL
,
User
char
(
80
)
binary
DEFAULT
''
NOT
NULL
,
Table_name
char
(
64
)
binary
DEFAULT
''
NOT
NULL
,
Grantor
char
(
141
)
DEFAULT
''
NOT
NULL
,
Timestamp
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
,
Table_priv
set
(
'Select'
,
'Insert'
,
'Update'
,
'Delete'
,
'Create'
,
'Drop'
,
'Grant'
,
'References'
,
'Index'
,
'Alter'
,
'Create View'
,
'Show view'
,
'Trigger'
)
COLLATE
utf8_general_ci
DEFAULT
''
NOT
NULL
,
Column_priv
set
(
'Select'
,
'Insert'
,
'Update'
,
'References'
)
COLLATE
utf8_general_ci
DEFAULT
''
NOT
NULL
,
PRIMARY
KEY
(
Host
,
Db
,
User
,
Table_name
),
KEY
Grantor
(
Grantor
)
)
engine
=
MyISAM
CHARACTER
SET
utf8
COLLATE
utf8_bin
comment
=
'Table privileges'
;
...
...
sql/sql_yacc.yy
View file @
1ad79c81
...
...
@@ -2668,7 +2668,6 @@ server_option:
{
MYSQL_YYABORT_UNLESS(Lex->server_options.host.str == 0);
Lex->server_options.host= $2;
my_casedn_str(system_charset_info, Lex->server_options.host.str);
}
| DATABASE TEXT_STRING_sys
{
...
...
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