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:
@ -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++)
|
||||
{
|
||||
|
Reference in New Issue
Block a user