1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Fixed bug mdev-5415.

Do not calculate selectivity of conditions for the tables of the information schema.
This commit is contained in:
Igor Babaev
2013-12-14 19:13:37 -08:00
parent 4bce09c104
commit 8efaff4959
4 changed files with 30 additions and 0 deletions

View File

@ -3410,6 +3410,9 @@ bool calculate_cond_selectivity_for_table(THD *thd, TABLE *table, Item *cond)
if (table_records == 0)
DBUG_RETURN(FALSE);
if (table->pos_in_table_list->schema_table)
DBUG_RETURN(FALSE);
if (thd->variables.optimizer_use_condition_selectivity > 2 &&
!bitmap_is_clear_all(used_fields))