Skip to content

Commit e339616

Browse files
author
Jacob Mathew
committed
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.
1 parent 21f310d commit e339616

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage/spider/spd_direct_sql.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1706,7 +1706,7 @@ long long spider_direct_sql_body(
17061706
error_num = ER_SPIDER_UDF_TMP_TABLE_NOT_FOUND_NUM;
17071707
my_printf_error(ER_SPIDER_UDF_TMP_TABLE_NOT_FOUND_NUM,
17081708
ER_SPIDER_UDF_TMP_TABLE_NOT_FOUND_STR,
1709-
MYF(0), table_list.db, table_list.table_name);
1709+
MYF(0), table_list.db.str, table_list.table_name.str);
17101710
goto error;
17111711
#if MYSQL_VERSION_ID < 50500
17121712
#else

0 commit comments

Comments
 (0)