Post-review changes of the patch for bug mdev-5103.
This commit is contained in:
parent
8224d95524
commit
59f099dda1
@ -5574,7 +5574,9 @@ void Item_equal::add_const(Item *c, Item *f)
|
||||
func->quick_fix_field();
|
||||
cond_false= !func->val_int();
|
||||
}
|
||||
if (cond_false)
|
||||
if (with_const && equal_items.elements == 1)
|
||||
cond_true= TRUE;
|
||||
if (cond_false || cond_true)
|
||||
const_item_cache= 1;
|
||||
}
|
||||
|
||||
@ -5814,9 +5816,6 @@ void Item_equal::update_const()
|
||||
{
|
||||
it.remove();
|
||||
add_const(item);
|
||||
if (equal_items.elements == 1)
|
||||
cond_true= TRUE;
|
||||
update_used_tables();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user