mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MDEV-6311 Add errors on CREATE SERVER
fail CREATE SERVER foreign data wrapper is "mysql" and neither HOST nor SOCKET are specified. Also default PORT to 3306 (again, only for foreign data wrapper "mysql")
This commit is contained in:
@ -246,7 +246,7 @@ drop user guest_usage@localhost;
|
||||
drop user guest_select@localhost;
|
||||
drop table federated.t1;
|
||||
drop server 's1';
|
||||
create server 's1' foreign data wrapper 'mysql' options (port 3306);
|
||||
create server 's1' foreign data wrapper 'mysql' options (host 'foo');
|
||||
alter server 's1' options
|
||||
(host 'localhost', database '', user '',
|
||||
password '', socket '', owner '', port 3306);
|
||||
|
@ -292,7 +292,7 @@ drop server 's1';
|
||||
#
|
||||
# Bug#30671 - ALTER SERVER causes the server to crash
|
||||
#
|
||||
create server 's1' foreign data wrapper 'mysql' options (port 3306);
|
||||
create server 's1' foreign data wrapper 'mysql' options (host 'foo');
|
||||
alter server 's1' options
|
||||
(host 'localhost', database '', user '',
|
||||
password '', socket '', owner '', port 3306);
|
||||
|
@ -2143,7 +2143,7 @@ DROP TABLE t1;
|
||||
#Switch to Connection Slave
|
||||
DROP TABLE t1;
|
||||
End of 5.0 tests
|
||||
create server 's1' foreign data wrapper 'mysql' options (port 3306);
|
||||
create server 's1' foreign data wrapper 'mysql' options (host 'foo');
|
||||
drop server 's1';
|
||||
#
|
||||
# Bug #32426: FEDERATED query returns corrupt results for ORDER BY on a TEXT
|
||||
|
@ -1966,7 +1966,7 @@ connection default;
|
||||
|
||||
--echo End of 5.0 tests
|
||||
|
||||
create server 's1' foreign data wrapper 'mysql' options (port 3306);
|
||||
create server 's1' foreign data wrapper 'mysql' options (host 'foo');
|
||||
drop server 's1';
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user