summaryrefslogtreecommitdiff
path: root/mysql-test/t/servers.test
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@mariadb.org>2013-06-06 19:27:17 +0400
committerSergey Vojtovich <svoj@mariadb.org>2013-06-06 19:27:17 +0400
commiteec66e2f655bc976377db7620a884b97acf9618c (patch)
treede32f1db13a1ef9533f45bc00349cc431f891c1f /mysql-test/t/servers.test
parent7f58eb4f79f3b856258b4e1d1203b6e7f27aa3de (diff)
downloadmariadb-git-eec66e2f655bc976377db7620a884b97acf9618c.tar.gz
MDEV-4594 - CREATE SERVER crashes embedded
mysql-test/r/servers.result: Added test case for MDEV-4594. mysql-test/t/servers.test: Added test case for MDEV-4594. sql/mysqld.cc: Move servers_init() call to init_server_components(), so it is called for embedded as well. Call servers_free() even if NO_EMBEDDED_ACCESS_CHECKS defined (because we call servers_init() anyway).
Diffstat (limited to 'mysql-test/t/servers.test')
-rw-r--r--mysql-test/t/servers.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/t/servers.test b/mysql-test/t/servers.test
new file mode 100644
index 00000000000..ee0fa637b87
--- /dev/null
+++ b/mysql-test/t/servers.test
@@ -0,0 +1,8 @@
+# Generic tests for servers (do not require FEDERATED)
+
+--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;