2011-10-19 21:45:18 +02:00
|
|
|
if (!$HA_BLACKHOLE_SO) {
|
|
|
|
--skip Need blackhole plugin
|
|
|
|
}
|
2015-08-11 18:45:38 +02:00
|
|
|
set sql_mode="";
|
2010-04-26 20:44:10 +02:00
|
|
|
CREATE TABLE t1(a int) ENGINE=BLACKHOLE;
|
2015-08-11 18:45:38 +02:00
|
|
|
set sql_mode=default;
|
2010-04-26 20:44:10 +02:00
|
|
|
DROP TABLE t1;
|
2011-12-02 14:38:05 +01:00
|
|
|
--replace_regex /\.dll/.so/
|
2011-10-19 21:45:18 +02:00
|
|
|
eval INSTALL PLUGIN blackhole SONAME '$HA_BLACKHOLE_SO';
|
2011-12-02 14:38:05 +01:00
|
|
|
--replace_regex /\.dll/.so/
|
2015-07-28 08:18:55 +02:00
|
|
|
--error ER_PLUGIN_INSTALLED
|
2011-10-19 21:45:18 +02:00
|
|
|
eval INSTALL PLUGIN BLACKHOLE SONAME '$HA_BLACKHOLE_SO';
|
2010-04-26 20:44:10 +02:00
|
|
|
|
|
|
|
UNINSTALL PLUGIN blackhole;
|
2011-12-02 14:38:05 +01:00
|
|
|
--replace_regex /\.dll/.so/
|
2011-10-19 21:45:18 +02:00
|
|
|
eval INSTALL PLUGIN blackhole SONAME '$HA_BLACKHOLE_SO';
|
2010-04-26 20:44:10 +02:00
|
|
|
|
|
|
|
CREATE TABLE t1(a int) ENGINE=BLACKHOLE;
|
|
|
|
|
|
|
|
DROP TABLE t1;
|
|
|
|
|
2011-03-14 12:03:08 +01:00
|
|
|
# This dummy statement is required for --ps-protocol mode.
|
|
|
|
# The thing is that last prepared statement is "cached" in mysqltest.cc
|
|
|
|
# (unless "reconnect" is enabled, and that's not the case here).
|
|
|
|
# This statement forces mysqltest.cc to close prepared "DROP TABLE t1".
|
|
|
|
# Otherwise, the plugin can not be uninstalled because there is an active
|
|
|
|
# prepared statement using it.
|
|
|
|
SELECT 1;
|
|
|
|
|
2010-04-26 20:44:10 +02:00
|
|
|
UNINSTALL PLUGIN blackhole;
|
|
|
|
--error ER_SP_DOES_NOT_EXIST
|
|
|
|
UNINSTALL PLUGIN blackhole;
|
|
|
|
|