Debian Codegraph @

mysql-test/suite/archive/archive_plugin.test

raw
1 if (!$HA_ARCHIVE_SO) {
2 --skip Need archive plugin
3 }
4
5 --error ER_UNKNOWN_STORAGE_ENGINE
6 CREATE TABLE t1(a int) ENGINE=ARCHIVE;
7 --replace_regex /\.dll/.so/
8 eval INSTALL PLUGIN archive SONAME '$HA_ARCHIVE_SO';
9 --replace_regex /\.dll/.so/
10 --error ER_PLUGIN_INSTALLED
11 eval INSTALL PLUGIN ARCHIVE SONAME '$HA_ARCHIVE_SO';
12
13 UNINSTALL PLUGIN archive;
14 --replace_regex /\.dll/.so/
15 eval INSTALL PLUGIN archive SONAME '$HA_ARCHIVE_SO';
16
17 CREATE TABLE t1(a int) ENGINE=ARCHIVE;
18
19 DROP TABLE t1;
20
21 # This dummy statement is required for --ps-protocol mode.
22 # The thing is that last prepared statement is "cached" in mysqltest.cc
23 # (unless "reconnect" is enabled, and that's not the case here).
24 # This statement forces mysqltest.cc to close prepared "DROP TABLE t1".
25 # Otherwise, the plugin can not be uninstalled because there is an active
26 # prepared statement using it.
27 SELECT 1;
28
29 UNINSTALL PLUGIN archive;
30
31 --error ER_SP_DOES_NOT_EXIST
32 UNINSTALL PLUGIN archive;
33