mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Merge bk-internal.mysql.com:/home/bk/mysql-5.1
into mockturtle.local:/home/dlenev/src/mysql-5.1-rt-merge
This commit is contained in:
@ -4913,9 +4913,17 @@ static SEL_TREE *get_func_mm_tree(RANGE_OPT_PARAM *param, Item_func *cond_func,
|
||||
{
|
||||
Item_func_in *func=(Item_func_in*) cond_func;
|
||||
|
||||
/*
|
||||
Array for IN() is constructed when all values have the same result
|
||||
type. Tree won't be built for values with different result types,
|
||||
so we check it here to avoid unnecessary work.
|
||||
*/
|
||||
if (!func->array)
|
||||
break;
|
||||
|
||||
if (inv)
|
||||
{
|
||||
if (func->array && func->cmp_type != ROW_RESULT)
|
||||
if (func->array->result_type() != ROW_RESULT)
|
||||
{
|
||||
/*
|
||||
We get here for conditions in form "t.key NOT IN (c1, c2, ...)",
|
||||
|
Reference in New Issue
Block a user