summaryrefslogtreecommitdiff
path: root/client/mysql_plugin.c
diff options
context:
space:
mode:
authorunknown <chuck.bell@oracle.com>2011-10-17 15:30:28 -0400
committerunknown <chuck.bell@oracle.com>2011-10-17 15:30:28 -0400
commitd1846e3b95c0bf75e0648e44136933e07f85f9fa (patch)
treed083e2143351f826891dc277e9c3b5ae22b16c7f /client/mysql_plugin.c
parent7b4ebc16c391c5933072cd45e3d5ee4553c915d8 (diff)
downloadmariadb-git-d1846e3b95c0bf75e0648e44136933e07f85f9fa.tar.gz
BUG#12968815: mysql_plugin : disable requires plugin name but doesn't use it
This patch corrects a defect in the building of the DELETE commands for disabling a plugin whereby only the original plugin data was deleted. If there were other plugins, the delete did not remove the rows. The code has been changed to remove all rows from the mysql.plugin table that were inserted when the plugin was loaded. The test has also been changed to correctly identify if all rows have been deleted.
Diffstat (limited to 'client/mysql_plugin.c')
-rw-r--r--client/mysql_plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/mysql_plugin.c b/client/mysql_plugin.c
index 825c962c486..dd5c02931c9 100644
--- a/client/mysql_plugin.c
+++ b/client/mysql_plugin.c
@@ -1081,7 +1081,7 @@ static int build_bootstrap_file(char *operation, char *bootstrap)
else
{
fprintf(file,
- "DELETE FROM mysql.plugin WHERE name = '%s';", plugin_data.name);
+ "DELETE FROM mysql.plugin WHERE dl = '%s';", plugin_data.so_name);
if (opt_verbose)
{
printf("# Disabling %s...\n", plugin_data.name);