summaryrefslogtreecommitdiff
path: root/mysql-test/t/warnings_engine_disabled.test
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2006-12-15 15:05:50 +0100
committerunknown <msvensson@neptunus.(none)>2006-12-15 15:05:50 +0100
commit5037af168640392987ad1352a7de106fad59b677 (patch)
tree33edc49ef0fa918b2cb9f908e962a4e0b14cfa8a /mysql-test/t/warnings_engine_disabled.test
parentc3e3e6e17e573874d1ad9122acbafd0916a0bec2 (diff)
downloadmariadb-git-5037af168640392987ad1352a7de106fad59b677.tar.gz
Bug#24997 warnings test case failure
- Move the specific test case to a separate file that is run only if we have a disabled handler. mysql-test/r/warnings.result: Move the test for warning that table type is changed to separate file as it only occurs when engine is disabled. mysql-test/t/warnings.test: Move the test for warning that table type is changed to separate file as it only occurs when engine is disabled. mysql-test/r/warnings_engine_disabled.result: Move the test for warning that table type is changed to separate file as it only occurs when engine is disabled. mysql-test/t/warnings_engine_disabled-master.opt: New BitKeeper file ``mysql-test/t/warnings_engine_disabled-master.opt'' mysql-test/t/warnings_engine_disabled.test: Move the test for warning that table type is changed to separate file as it only occurs when engine is disabled.
Diffstat (limited to 'mysql-test/t/warnings_engine_disabled.test')
-rw-r--r--mysql-test/t/warnings_engine_disabled.test19
1 files changed, 19 insertions, 0 deletions
diff --git a/mysql-test/t/warnings_engine_disabled.test b/mysql-test/t/warnings_engine_disabled.test
new file mode 100644
index 00000000000..0b09cff7b1e
--- /dev/null
+++ b/mysql-test/t/warnings_engine_disabled.test
@@ -0,0 +1,19 @@
+#
+# Only run this test with a compiled in but disabled
+# engine
+#
+disable_query_log;
+--require r/true.require
+select support = 'Disabled' as `TRUE` from information_schema.engines where engine = 'ndbcluster';
+enable_query_log;
+
+
+#
+# Test for handler type, will select MyISAM and print a warning
+# about that - since NDB is disabled
+#
+create table t1 (id int) engine=NDB;
+alter table t1 engine=NDB;
+drop table t1;
+
+