| 4629 | */ |
| 4630 | |
| 4631 | static |
| 4632 | bool bkah_range_seq_next(range_seq_t rseq, KEY_MULTI_RANGE *range) |
| 4633 | { |
| 4634 | DBUG_ENTER("bkah_range_seq_next"); |
| 4635 | JOIN_CACHE_BKAH *cache= (JOIN_CACHE_BKAH *) rseq; |
| 4636 | TABLE_REF *ref= &cache->join_tab->ref; |
| 4637 | key_range *start_key= &range->start_key; |
| 4638 | if ((start_key->length= cache->get_next_key((uchar **) &start_key->key))) |
| 4639 | { |
| 4640 | start_key->keypart_map= (1 << ref->key_parts) - 1; |
| 4641 | start_key->flag= HA_READ_KEY_EXACT; |
| 4642 | range->end_key= *start_key; |
| 4643 | range->end_key.flag= HA_READ_AFTER_KEY; |
| 4644 | range->ptr= (char *) cache->get_curr_key_chain(); |
| 4645 | range->range_flag= EQ_RANGE; |
| 4646 | DBUG_RETURN(0); |
| 4647 | } |
| 4648 | DBUG_RETURN(1); |
| 4649 | } |
| 4650 | |
| 4651 | |
| 4652 | /* |
nothing calls this directly
no test coverage detected