1
0
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:
Igor Babaev
2013-09-15 12:38:22 -07:00
parent cf9cc19e91
commit 996f6194c6
3 changed files with 35 additions and 1 deletions

View File

@@ -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();