mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Fixed bug mdev-4942.
Made sure that degenerate conjunctions/disjunctions are obtained from AND/OR conditions.
This commit is contained in:
@@ -13350,7 +13350,8 @@ remove_eq_conds(THD *thd, COND *cond, Item::cond_result *cond_value)
|
||||
In these cases the disjunct/conjunct must be merged into the
|
||||
argument list of cond.
|
||||
*/
|
||||
if (new_item->type() == Item::COND_ITEM)
|
||||
if (new_item->type() == Item::COND_ITEM &&
|
||||
item->type() == Item::COND_ITEM)
|
||||
{
|
||||
DBUG_ASSERT(((Item_cond *) cond)->functype() ==
|
||||
((Item_cond *) new_item)->functype());
|
||||
|
||||
Reference in New Issue
Block a user