mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Merge branch '10.3' into 10.4
This commit is contained in:
@@ -971,7 +971,8 @@ bool Item_func_in::to_be_transformed_into_in_subq(THD *thd)
|
||||
if (args[1]->type() == Item::ROW_ITEM)
|
||||
values_count*= ((Item_row *)(args[1]))->cols();
|
||||
|
||||
if (values_count < thd->variables.in_subquery_conversion_threshold)
|
||||
if (thd->variables.in_subquery_conversion_threshold == 0 ||
|
||||
thd->variables.in_subquery_conversion_threshold > values_count)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user