mirror of
https://github.com/MariaDB/server.git
synced 2025-10-12 12:25:37 +03:00
Fixed bug mdev-5015.
The patch for mdev-4355 had a defect: the cached values for bitmaps of used tables were not updated when processing degenerate OR formulas.
This commit is contained in:
@@ -13505,7 +13505,8 @@ remove_eq_conds(THD *thd, COND *cond, Item::cond_result *cond_value)
|
||||
{
|
||||
if (!(cond= remove_eq_conds(thd, cond, cond_value)))
|
||||
return cond;
|
||||
}
|
||||
}
|
||||
should_fix_fields= 1;
|
||||
}
|
||||
if (should_fix_fields)
|
||||
cond->update_used_tables();
|
||||
|
Reference in New Issue
Block a user