Fix buildbot failure in fix of BUG#723822

This commit is contained in:
Sergey Petrunya 2011-02-26 23:09:58 +03:00
parent 71371a9d5e
commit db984067eb
2 changed files with 3 additions and 2 deletions

View File

@ -11864,7 +11864,7 @@ get_constant_key_infix(KEY *index_info, SEL_ARG *index_range_tree,
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. */

View File

@ -3871,7 +3871,8 @@ bool bka_skip_index_tuple(range_seq_t rseq, char *range_info)
{
DBUG_ENTER("bka_skip_index_tuple");
JOIN_CACHE_BKA *cache= (JOIN_CACHE_BKA *) rseq;
DBUG_RETURN(cache->skip_index_tuple(range_info));
bool res= cache->skip_index_tuple(range_info);
DBUG_RETURN(res);
}