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
commitcc1b046c3e68374de3f947a7f6bde253ca0a5956 (patch)
tree0a84c763c0d6b36c4259b006cc52e258a28cddfc /sql-common
parent6cafefd2a568c9ac889a03020c799f29c3eeb5c8 (diff)
downloadmariadb-git-cc1b046c3e68374de3f947a7f6bde253ca0a5956.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;