From efffe136fa06ff30fec2a789dc9b98cecb552c05 Mon Sep 17 00:00:00 2001 From: adofsauron Date: Thu, 11 May 2023 11:28:54 +0800 Subject: [PATCH] fix(tianmu): fix Error result set of the IN subquery with semi join (#1764) --- sql/sql_resolver.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sql/sql_resolver.cc b/sql/sql_resolver.cc index 44d3971f4..447f3267d 100644 --- a/sql/sql_resolver.cc +++ b/sql/sql_resolver.cc @@ -1037,9 +1037,7 @@ bool SELECT_LEX::resolve_subquery(THD *thd) for (TABLE_LIST *p_table_list = parent_tables.first; p_table_list; p_table_list = p_table_list->next_local) { TABLE* p_table = p_table_list->table; - if (p_table && p_table->s && p_table->s->db_type() && - p_table->s->db_type()->db_type == DB_TYPE_TIANMU && - p_table->key_info) { + if (p_table && p_table->reginfo.join_tab && p_table->reginfo.join_tab->quick()) { tianmu_table_has_index = true; break; }