| 25698 | */ |
| 25699 | |
| 25700 | static |
| 25701 | int test_if_use_dynamic_range_scan(JOIN_TAB *join_tab) |
| 25702 | { |
| 25703 | if (unlikely(join_tab->use_quick == 2)) |
| 25704 | { |
| 25705 | quick_select_return res= test_if_quick_select(join_tab); |
| 25706 | if (res == SQL_SELECT::ERROR) |
| 25707 | return -1; |
| 25708 | else |
| 25709 | { |
| 25710 | /* Both OK and IMPOSSIBLE_RANGE go here */ |
| 25711 | return join_tab->select->quick ? 1 : 0; |
| 25712 | } |
| 25713 | } |
| 25714 | else |
| 25715 | return 0; |
| 25716 | } |
| 25717 | |
| 25718 | |
| 25719 | int join_init_read_record(JOIN_TAB *tab) |
no test coverage detected