mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MWL#89
Merge 5.3 into 5.3-mwl89.
This commit is contained in:
@ -11867,13 +11867,14 @@ get_constant_key_infix(KEY *index_info, SEL_ARG *index_range_tree,
|
||||
Find the range tree for the current keypart. We assume that
|
||||
index_range_tree points to the leftmost keypart in the index.
|
||||
*/
|
||||
for (cur_range= index_range_tree; cur_range;
|
||||
for (cur_range= index_range_tree;
|
||||
cur_range && cur_range->type == SEL_ARG::KEY_RANGE;
|
||||
cur_range= cur_range->next_key_part)
|
||||
{
|
||||
if (cur_range->field->eq(cur_part->field))
|
||||
break;
|
||||
}
|
||||
if (!cur_range)
|
||||
if (!cur_range || cur_range->type != SEL_ARG::KEY_RANGE)
|
||||
{
|
||||
if (min_max_arg_part)
|
||||
return FALSE; /* The current keypart has no range predicates at all. */
|
||||
|
Reference in New Issue
Block a user