MOON
Server: Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4
System: Linux vps.panamaemb.org.sg 3.10.0-1160.80.1.vz7.191.4 #1 SMP Thu Dec 15 20:31:06 MSK 2022 x86_64
User: panama (500)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //proc/2/cwd/usr/share/mysql-test/t/warnings_engine_disabled.test
#
# Only run this test with a compiled in but disabled
# engine
#
let $federated_support = `select engine from information_schema.engines where engine = 'FEDERATED'`;
if(!$federated_support) {
	skip "Test need FEDERATED engine";
}

#
# Test for using disabled engine
# The server will throw an error - since FEDERATED is disabled
#
--ERROR ER_UNKNOWN_STORAGE_ENGINE
create table t1 (id int) engine=FEDERATED;
--ERROR ER_UNKNOWN_STORAGE_ENGINE
alter table t1 engine=FEDERATED;
--ERROR ER_BAD_TABLE_ERROR
drop table t1;

#
# Bug#29263 disabled storage engines omitted in SHOW ENGINES
#
SELECT ENGINE, SUPPORT FROM INFORMATION_SCHEMA.ENGINES WHERE ENGINE='FEDERATED';
SELECT PLUGIN_NAME, PLUGIN_STATUS FROM INFORMATION_SCHEMA.PLUGINS WHERE
PLUGIN_NAME='FEDERATED';