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

This commit is contained in:
Kentoku SHIBA 2020-08-10 21:38:51 +09:00
parent 09be96ff08
commit 1ddff751eb

View file

@ -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(