| 17394 | } |
| 17395 | |
| 17396 | void QUICK_RANGE_SELECT::dbug_dump(int indent, bool verbose) |
| 17397 | { |
| 17398 | /* purecov: begin inspected */ |
| 17399 | fprintf(DBUG_FILE, "%*squick range select, key %s, length: %d\n", |
| 17400 | indent, "", head->key_info[index].name.str, max_used_key_length); |
| 17401 | |
| 17402 | if (verbose) |
| 17403 | { |
| 17404 | QUICK_RANGE *range; |
| 17405 | QUICK_RANGE **pr= (QUICK_RANGE**)ranges.buffer; |
| 17406 | QUICK_RANGE **end_range= pr + ranges.elements; |
| 17407 | for (; pr != end_range; ++pr) |
| 17408 | { |
| 17409 | fprintf(DBUG_FILE, "%*s", indent + 2, ""); |
| 17410 | range= *pr; |
| 17411 | if (!(range->flag & NO_MIN_RANGE)) |
| 17412 | { |
| 17413 | print_key(key_parts, range->min_key, range->min_length); |
| 17414 | if (range->flag & NEAR_MIN) |
| 17415 | fputs(" < ",DBUG_FILE); |
| 17416 | else |
| 17417 | fputs(" <= ",DBUG_FILE); |
| 17418 | } |
| 17419 | fputs("X",DBUG_FILE); |
| 17420 | |
| 17421 | if (!(range->flag & NO_MAX_RANGE)) |
| 17422 | { |
| 17423 | if (range->flag & NEAR_MAX) |
| 17424 | fputs(" < ",DBUG_FILE); |
| 17425 | else |
| 17426 | fputs(" <= ",DBUG_FILE); |
| 17427 | print_key(key_parts, range->max_key, range->max_length); |
| 17428 | } |
| 17429 | fputs("\n",DBUG_FILE); |
| 17430 | } |
| 17431 | } |
| 17432 | /* purecov: end */ |
| 17433 | } |
| 17434 | |
| 17435 | void QUICK_INDEX_SORT_SELECT::dbug_dump(int indent, bool verbose) |
| 17436 | { |