summaryrefslogtreecommitdiff
path: root/storage/spider
diff options
context:
space:
mode:
authorJacob Mathew <jacob.mathew@mariadb.com>2018-09-17 18:39:16 -0700
committerJacob Mathew <jacob.mathew@mariadb.com>2018-09-17 18:48:38 -0700
commite33961611a8423ddfc7fa17ceed3c7a6ab234a57 (patch)
treecf1d5e58e8893d1369fa9f04440d4d89b1b6af00 /storage/spider
parent21f310db30fbf11c1fe7ae3a558c7ec0f0fc2641 (diff)
downloadmariadb-git-e33961611a8423ddfc7fa17ceed3c7a6ab234a57.tar.gz
MDEV-17144: Sample of spider_direct_sql cause crashbb-10.3-mdev-17144
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.
Diffstat (limited to 'storage/spider')
-rw-r--r--storage/spider/spd_direct_sql.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/spider/spd_direct_sql.cc b/storage/spider/spd_direct_sql.cc
index de355c1068d..d56848f5dbd 100644
--- a/storage/spider/spd_direct_sql.cc
+++ b/storage/spider/spd_direct_sql.cc
@@ -1706,7 +1706,7 @@ long long spider_direct_sql_body(
error_num = 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,
- MYF(0), table_list.db, table_list.table_name);
+ MYF(0), table_list.db.str, table_list.table_name.str);
goto error;
#if MYSQL_VERSION_ID < 50500
#else