summaryrefslogtreecommitdiff
path: root/mysql-test/main/truncate_badse.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/main/truncate_badse.test')
-rw-r--r--mysql-test/main/truncate_badse.test15
1 files changed, 15 insertions, 0 deletions
diff --git a/mysql-test/main/truncate_badse.test b/mysql-test/main/truncate_badse.test
new file mode 100644
index 00000000000..71545cab11a
--- /dev/null
+++ b/mysql-test/main/truncate_badse.test
@@ -0,0 +1,15 @@
+#
+# test what TRUNCATE TABLE does, if the table was created in
+# now-unknown storage engine.
+#
+--source include/have_example_plugin.inc
+install plugin example soname 'ha_example';
+create table t1 (a int) engine=example;
+select 1;
+uninstall plugin example;
+flush tables;
+select count(*) from information_schema.plugins where plugin_name='example';
+--error ER_UNKNOWN_STORAGE_ENGINE
+truncate table t1;
+drop table t1;
+