From eec66e2f655bc976377db7620a884b97acf9618c Mon Sep 17 00:00:00 2001 From: Sergey Vojtovich Date: Thu, 6 Jun 2013 19:27:17 +0400 Subject: 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). --- mysql-test/t/servers.test | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 mysql-test/t/servers.test (limited to 'mysql-test/t/servers.test') 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; -- cgit v1.2.1