diff options
author | Georgi Kodinov <Georgi.Kodinov@Oracle.com> | 2011-03-17 15:52:49 +0200 |
---|---|---|
committer | Georgi Kodinov <Georgi.Kodinov@Oracle.com> | 2011-03-17 15:52:49 +0200 |
commit | 4bb5d2dce4e48d1c5891b21efae6366020992325 (patch) | |
tree | 0a84c763c0d6b36c4259b006cc52e258a28cddfc /sql-common | |
parent | 45175655e1dbe04cfbda9a1d89e0eca4dd86ef26 (diff) | |
download | mariadb-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.c | 1 |
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; |