adds an element to the array storing index usage hints (ADD/FORCE/IGNORE INDEX). SYNOPSIS add_index_hint() thd current thread. str name of the index. length number of characters in str. RETURN VALUE 0 on success, non-zero otherwise */
| 3405 | 0 on success, non-zero otherwise |
| 3406 | */ |
| 3407 | bool st_select_lex::add_index_hint (THD *thd, char *str, uint length) |
| 3408 | { |
| 3409 | return index_hints->push_front (new (thd->mem_root) |
| 3410 | Index_hint(current_index_hint_type, |
| 3411 | current_index_hint_clause, |
| 3412 | str, length)); |
| 3413 | } |
| 3414 | |
| 3415 | |
| 3416 | st_select_lex::type_enum st_select_lex::type(const THD *thd) |
nothing calls this directly
no test coverage detected