mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
2f5a462fdd
fails when running with ps-protocol). The problem was that when running in --ps-protocol mode mysqltest.cc didn't close created prepared statements. So, the plugins could not be unistalled because there was a prepared statement using them. A fix is to add a dummy statement that forces mysqltest.cc to close the last prepared statement (which uses a plugin-defined table).
18 lines
571 B
Text
18 lines
571 B
Text
CREATE TABLE t1(a int) ENGINE=BLACKHOLE;
|
|
Warnings:
|
|
Warning 1286 Unknown storage engine 'BLACKHOLE'
|
|
Warning 1266 Using storage engine MyISAM for table 't1'
|
|
DROP TABLE t1;
|
|
INSTALL PLUGIN blackhole SONAME 'ha_blackhole.so';
|
|
INSTALL PLUGIN BLACKHOLE SONAME 'ha_blackhole.so';
|
|
ERROR HY000: Function 'BLACKHOLE' already exists
|
|
UNINSTALL PLUGIN blackhole;
|
|
INSTALL PLUGIN blackhole SONAME 'ha_blackhole.so';
|
|
CREATE TABLE t1(a int) ENGINE=BLACKHOLE;
|
|
DROP TABLE t1;
|
|
SELECT 1;
|
|
1
|
|
1
|
|
UNINSTALL PLUGIN blackhole;
|
|
UNINSTALL PLUGIN blackhole;
|
|
ERROR 42000: PLUGIN blackhole does not exist
|