Commit 1ddff751 authored by Kentoku SHIBA's avatar Kentoku SHIBA

MENT-807 Crash with CREATE TEMPORARY TABLE .. ENGINE=SPIDER .. wrapper "odbc"

parent 09be96ff
......@@ -6323,6 +6323,7 @@ int spider_free_share(
#endif
if (
share->sts_init &&
share->table_share->tmp_table == NO_TMP_TABLE &&
spider_param_store_last_sts(share->store_last_sts)
) {
if (!thd)
......@@ -6343,6 +6344,7 @@ int spider_free_share(
}
if (
share->crd_init &&
share->table_share->tmp_table == NO_TMP_TABLE &&
spider_param_store_last_crd(share->store_last_crd)
) {
if (!thd)
......@@ -8171,6 +8173,7 @@ int spider_get_sts(
#endif
if (
!share->sts_init &&
share->table_share->tmp_table == NO_TMP_TABLE &&
spider_param_load_sts_at_startup(share->load_sts_at_startup) &&
(!share->init || share->init_error)
) {
......@@ -8321,6 +8324,7 @@ int spider_get_crd(
#endif
if (
!share->crd_init &&
share->table_share->tmp_table == NO_TMP_TABLE &&
spider_param_load_sts_at_startup(share->load_crd_at_startup)
) {
error_num = spider_sys_get_table_crd(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment