| 4148 | */ |
| 4149 | |
| 4150 | static |
| 4151 | bool bka_range_seq_next(range_seq_t rseq, KEY_MULTI_RANGE *range) |
| 4152 | { |
| 4153 | DBUG_ENTER("bka_range_seq_next"); |
| 4154 | JOIN_CACHE_BKA *cache= (JOIN_CACHE_BKA *) rseq; |
| 4155 | TABLE_REF *ref= &cache->join_tab->ref; |
| 4156 | key_range *start_key= &range->start_key; |
| 4157 | if ((start_key->length= cache->get_next_key((uchar **) &start_key->key))) |
| 4158 | { |
| 4159 | start_key->keypart_map= (1 << ref->key_parts) - 1; |
| 4160 | start_key->flag= HA_READ_KEY_EXACT; |
| 4161 | range->end_key= *start_key; |
| 4162 | range->end_key.flag= HA_READ_AFTER_KEY; |
| 4163 | range->ptr= (char *) cache->get_curr_rec(); |
| 4164 | range->range_flag= EQ_RANGE; |
| 4165 | DBUG_RETURN(0); |
| 4166 | } |
| 4167 | DBUG_RETURN(1); |
| 4168 | } |
| 4169 | |
| 4170 | |
| 4171 | /* |
nothing calls this directly
no test coverage detected