2013-06-06 17:27:17 +02:00
|
|
|
# Generic tests for servers (do not require FEDERATED)
|
2015-08-11 18:45:38 +02:00
|
|
|
set sql_mode="";
|
2013-06-06 17:27:17 +02:00
|
|
|
|
|
|
|
--echo #
|
|
|
|
--echo # MDEV-4594 - CREATE SERVER crashes embedded
|
|
|
|
--echo #
|
|
|
|
CREATE SERVER s1 FOREIGN DATA WRAPPER mysql OPTIONS(HOST 'localhost');
|
|
|
|
SELECT * FROM mysql.servers;
|
|
|
|
DROP SERVER s1;
|
2014-11-16 13:15:35 +01:00
|
|
|
|
|
|
|
CREATE SERVER s1 FOREIGN DATA WRAPPER foo OPTIONS(USER 'bar');
|
|
|
|
SELECT * FROM mysql.servers;
|
|
|
|
DROP SERVER s1;
|
|
|
|
|
|
|
|
--error ER_CANT_CREATE_FEDERATED_TABLE
|
|
|
|
CREATE SERVER s1 FOREIGN DATA WRAPPER mysql OPTIONS(USER 'bar');
|
|
|
|
|
|
|
|
CREATE SERVER s1 FOREIGN DATA WRAPPER mysql OPTIONS(HOST 'bar');
|
|
|
|
SELECT * FROM mysql.servers;
|
|
|
|
DROP SERVER s1;
|
|
|
|
|
|
|
|
CREATE SERVER s1 FOREIGN DATA WRAPPER mysql OPTIONS(SOCKET 'bar');
|
|
|
|
SELECT * FROM mysql.servers;
|
|
|
|
DROP SERVER s1;
|