Skip to content
This repository was archived by the owner on Mar 1, 2026. It is now read-only.

Commit 5667ffb

Browse files
author
Bharathy Satish
committed
Bug #33164347: mysql_plugin_get_option() not exported
This patch exports mysql_plugin_get_option symbol. RB#26895
1 parent 8a4960a commit 5667ffb

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

‎libmysql/CMakeLists.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ SET(CLIENT_API_FUNCTIONS
141141
mysql_warning_count
142142
mysql_real_connect_dns_srv
143143
mysql_bind_param
144+
mysql_plugin_get_option
144145
CACHE INTERNAL "Functions exported by client API"
145146
)
146147

‎testclients/mysql_client_test.cc‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22239,6 +22239,21 @@ static void test_bug32892045() {
2223922239
myquery(mysql_query(mysql, "DROP TABLE t1"));
2224022240
}
2224122241

22242+
static void test_bug33164347() {
22243+
int rc = 0;
22244+
bool opt = true;
22245+
struct st_mysql_client_plugin *plugin;
22246+
22247+
DBUG_TRACE;
22248+
myheader("test_bug33164347");
22249+
22250+
plugin = mysql_load_plugin(mysql, "qa_auth_client", -1, 0);
22251+
DIE_UNLESS(plugin == nullptr);
22252+
22253+
rc = mysql_plugin_get_option(plugin, "plugin_option", &opt);
22254+
DIE_UNLESS(rc != 0);
22255+
}
22256+
2224222257
static struct my_tests_st my_tests[] = {
2224322258
{"test_bug5194", test_bug5194},
2224422259
{"disable_query_logs", disable_query_logs},
@@ -22544,6 +22559,7 @@ static struct my_tests_st my_tests[] = {
2254422559
{"test_bug32558782", test_bug32558782},
2254522560
{"test_bug32847269", test_bug32847269},
2254622561
{"test_bug32892045", test_bug32892045},
22562+
{"test_bug33164347", test_bug33164347},
2254722563
{nullptr, nullptr}};
2254822564

2254922565
static struct my_tests_st *get_my_tests() { return my_tests; }

0 commit comments

Comments
 (0)