~ubuntu-branches/ubuntu/trusty/mariadb-5.5/trusty-proposed

« back to all changes in this revision

Viewing changes to mysql-test/t/blackhole_plugin.test

  • Committer: Package Import Robot
  • Author(s): Otto Kekäläinen
  • Date: 2013-12-22 10:27:05 UTC
  • Revision ID: package-import@ubuntu.com-20131222102705-mndw7s12mz0szrcn
Tags: upstream-5.5.32
Import upstream version 5.5.32

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
if (!$HA_BLACKHOLE_SO) {
 
2
  --skip Need blackhole plugin
 
3
}
 
4
 
 
5
CREATE TABLE t1(a int) ENGINE=BLACKHOLE;
 
6
DROP TABLE t1;
 
7
--replace_regex /\.dll/.so/
 
8
eval INSTALL PLUGIN blackhole SONAME '$HA_BLACKHOLE_SO';
 
9
--replace_regex /\.dll/.so/
 
10
--error 1125
 
11
eval INSTALL PLUGIN BLACKHOLE SONAME '$HA_BLACKHOLE_SO';
 
12
 
 
13
UNINSTALL PLUGIN blackhole;
 
14
--replace_regex /\.dll/.so/
 
15
eval INSTALL PLUGIN blackhole SONAME '$HA_BLACKHOLE_SO';
 
16
 
 
17
CREATE TABLE t1(a int) ENGINE=BLACKHOLE;
 
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 blackhole;
 
30
--error ER_SP_DOES_NOT_EXIST
 
31
UNINSTALL PLUGIN blackhole;
 
32