mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / mysql-test / t / plugin_not_embedded.test
blob40024efcaad0c510dfce0e121f60a87c80e1f325
1 --source include/not_embedded.inc
2 --source include/have_example_plugin.inc
4 --echo #
5 --echo # Bug#51770: UNINSTALL PLUGIN requires no privileges
6 --echo #
8 GRANT INSERT ON mysql.plugin TO bug51770@localhost;
9 connect(con1,localhost,bug51770,,);
10 --replace_regex /\.dll/.so/
11 eval INSTALL PLUGIN example SONAME $HA_EXAMPLE_SO;
12 --error ER_TABLEACCESS_DENIED_ERROR
13 UNINSTALL PLUGIN example;
14 connection default;
15 GRANT DELETE ON mysql.plugin TO bug51770@localhost;
16 connection con1;
17 UNINSTALL PLUGIN example;
18 disconnect con1;
19 connection default;
20 DROP USER bug51770@localhost;
22
23 # BUG#58246: INSTALL PLUGIN not secure & crashable
25 # The bug consisted of not recognizing / on Windows, so checking / on
26 # all platforms should cover this case.
28 let $path = `select CONCAT_WS('/', '..', $HA_EXAMPLE_SO)`;
29 --replace_regex /\.dll/.so/
30 --error ER_UDF_NO_PATHS
31 eval INSTALL PLUGIN example SONAME '$path';