1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

MDEV-19275 SQL service for plugins.

host/user/db arguments of the mysql_real_connect_local() are removed.
This commit is contained in:
Alexey Botchkov
2021-09-10 17:15:22 +04:00
committed by Oleksandr Byelkin
parent 74daa97adf
commit e1f9a80900
10 changed files with 28 additions and 65 deletions

View File

@@ -104,7 +104,7 @@ static int do_tests()
int result= 1;
mysql= mysql_init(NULL);
if (mysql_real_connect_local(mysql, NULL, NULL, NULL, 0) == NULL)
if (mysql_real_connect_local(mysql) == NULL)
return 1;
if (run_queries(mysql))
@@ -188,7 +188,7 @@ static int run_sql_local(MYSQL_THD thd, struct st_mysql_sys_var *var, void *save
int result= 1;
mysql= mysql_init(NULL);
if (mysql_real_connect_local(mysql, NULL, NULL, NULL, 0) == NULL)
if (mysql_real_connect_local(mysql) == NULL)
return 1;
if (run_sql(mysql, save, value))
@@ -217,7 +217,7 @@ static int test_sql_service_plugin_init(void *p __attribute__((unused)))
global_mysql= mysql_init(NULL);
if (!global_mysql ||
mysql_real_connect_local(global_mysql, NULL, NULL, NULL, 0) == NULL)
mysql_real_connect_local(global_mysql) == NULL)
return 1;
init_done= 1;