mirror of
https://github.com/MariaDB/server.git
synced 2026-04-23 00:35:32 +02:00
MDEV-17411 Wrong WHERE optimization with simple CASE and searched CASE
This commit is contained in:
parent
30629e196d
commit
4de0d920be
7 changed files with 66 additions and 9 deletions
|
|
@ -1813,10 +1813,7 @@ bool Item_func_opt_neg::eq(const Item *item, bool binary_cmp) const
|
|||
return 0;
|
||||
if (negated != ((Item_func_opt_neg *) item_func)->negated)
|
||||
return 0;
|
||||
for (uint i=0; i < arg_count ; i++)
|
||||
if (!args[i]->eq(item_func->arguments()[i], binary_cmp))
|
||||
return 0;
|
||||
return 1;
|
||||
return Item_args::eq(item_func, binary_cmp);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue