Skip to content

Commit

Permalink
fix(tianmu): fix Error result set of the IN subquery with semi join (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
adofsauron committed May 11, 2023
1 parent 304df8e commit efffe13
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sql/sql_resolver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit efffe13

Please sign in to comment.