mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-17144: Sample of spider_direct_sql cause crash
The crash occurs when the Spider node server attempts to create an error message stating that the temporary table is not found. The function to create the error message is called with incorrect parameters. I fixed the crash by correcting the incorrect parameter values. Author: Jacob Mathew. Reviewer: Kentoku Shiba.
This commit is contained in:
@@ -1706,7 +1706,7 @@ long long spider_direct_sql_body(
|
|||||||
error_num = ER_SPIDER_UDF_TMP_TABLE_NOT_FOUND_NUM;
|
error_num = ER_SPIDER_UDF_TMP_TABLE_NOT_FOUND_NUM;
|
||||||
my_printf_error(ER_SPIDER_UDF_TMP_TABLE_NOT_FOUND_NUM,
|
my_printf_error(ER_SPIDER_UDF_TMP_TABLE_NOT_FOUND_NUM,
|
||||||
ER_SPIDER_UDF_TMP_TABLE_NOT_FOUND_STR,
|
ER_SPIDER_UDF_TMP_TABLE_NOT_FOUND_STR,
|
||||||
MYF(0), table_list.db, table_list.table_name);
|
MYF(0), table_list.db.str, table_list.table_name.str);
|
||||||
goto error;
|
goto error;
|
||||||
#if MYSQL_VERSION_ID < 50500
|
#if MYSQL_VERSION_ID < 50500
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user