summaryrefslogtreecommitdiff
path: root/sql-common
diff options
context:
space:
mode:
authorGeorgi Kodinov <Georgi.Kodinov@Oracle.com>2011-03-17 15:52:49 +0200
committerGeorgi Kodinov <Georgi.Kodinov@Oracle.com>2011-03-17 15:52:49 +0200
commit4bb5d2dce4e48d1c5891b21efae6366020992325 (patch)
tree0a84c763c0d6b36c4259b006cc52e258a28cddfc /sql-common
parent45175655e1dbe04cfbda9a1d89e0eca4dd86ef26 (diff)
downloadmariadb-git-4bb5d2dce4e48d1c5891b21efae6366020992325.tar.gz
Bug #11766854: 60075: MYSQL_LOAD_CLIENT_PLUGIN DOESN'T CLEAR ERROR
Added the cleanup code. Extended mysql_client_test to take --plugin-dir and --default_auth. Added a C test case.
Diffstat (limited to 'sql-common')
-rw-r--r--sql-common/client_plugin.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql-common/client_plugin.c b/sql-common/client_plugin.c
index 6b4cca8aeea..47409e34d9a 100644
--- a/sql-common/client_plugin.c
+++ b/sql-common/client_plugin.c
@@ -163,6 +163,7 @@ add_plugin(MYSQL *mysql, struct st_mysql_client_plugin *plugin, void *dlhandle,
p->next= plugin_list[plugin->type];
plugin_list[plugin->type]= p;
+ net_clear_error(&mysql->net);
return plugin;