1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fixed bug mdev-4372.

Range analysis of non-indexed columns should handle properly range trees
with type == SEL_TREE::MAYBE.
This commit is contained in:
Igor Babaev
2013-04-06 12:33:38 -07:00
parent b2d0a33ea0
commit 1c30fb2a15
4 changed files with 89 additions and 1 deletions

View File

@ -3368,7 +3368,12 @@ bool calculate_cond_selectivity_for_table(THD *thd, TABLE *table, Item *cond)
rows= 0;
table->reginfo.impossible_range= 1;
goto free_alloc;
}
}
else if (tree->type == SEL_TREE::MAYBE)
{
rows= table_records;
goto free_alloc;
}
for (key= tree->keys, end= key + param.keys; key != end; key++, idx++)
{