mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
sql_select.cc:
Fixed a problem a with special cases of IS NULL usage caused by some erroneous change made when Item_equal was introduced. sql/sql_select.cc: Fixed a problem a with special cases of IS NULL usage caused by some erroneous change made when Item_equal was introduced.
This commit is contained in:
@@ -5152,8 +5152,7 @@ remove_eq_conds(COND *cond,Item::cond_result *cond_value)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (cond->type() == Item::FUNC_ITEM &&
|
else if (cond->type() == Item::FUNC_ITEM &&
|
||||||
((Item_func*) cond)->functype() == Item_func::ISNULL_FUNC &&
|
((Item_func*) cond)->functype() == Item_func::ISNULL_FUNC)
|
||||||
!cond->const_item())
|
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
Handles this special case for some ODBC applications:
|
Handles this special case for some ODBC applications:
|
||||||
@@ -5203,6 +5202,11 @@ remove_eq_conds(COND *cond,Item::cond_result *cond_value)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (cond->const_item())
|
||||||
|
{
|
||||||
|
*cond_value= eval_const_cond(cond) ? Item::COND_TRUE : Item::COND_FALSE;
|
||||||
|
return (COND*) 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (cond->type() == Item::FUNC_ITEM &&
|
else if (cond->type() == Item::FUNC_ITEM &&
|
||||||
((Item_func*) cond)->functype() == Item_func::MULT_EQUAL_FUNC)
|
((Item_func*) cond)->functype() == Item_func::MULT_EQUAL_FUNC)
|
||||||
|
Reference in New Issue
Block a user