GIF89a; Mini Shell

Mini Shell

Direktori : /usr/share/mysql-test/t/
Upload File :
Current File : //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';

./BlackJoker Mini Shell 1.0