diff options
Diffstat (limited to 'mysql-test/main/plugin.test')
-rw-r--r-- | mysql-test/main/plugin.test | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mysql-test/main/plugin.test b/mysql-test/main/plugin.test index 68c4d5afd64..0990cb206d8 100644 --- a/mysql-test/main/plugin.test +++ b/mysql-test/main/plugin.test @@ -265,3 +265,21 @@ UNINSTALL PLUGIN example; --error ER_NO_SUCH_TABLE RENAME TABLE t1 TO t2; DROP TABLE t1; + +--source include/install_plugin_if_exists.inc + + +--echo # +--echo # Make sure temporary tables maintain plugin references properly +--echo # +INSTALL PLUGIN example SONAME 'ha_example'; +CREATE TEMPORARY TABLE t1(a INT) ENGINE=example; +UNINSTALL PLUGIN example; +--error ER_PLUGIN_INSTALLED +INSTALL PLUGIN example SONAME 'ha_example'; +DROP TABLE t1; + +INSTALL PLUGIN example SONAME 'ha_example'; +CREATE TEMPORARY TABLE t1(a INT) ENGINE=example; +DROP TABLE t1; +UNINSTALL PLUGIN example; |