MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / add_index_hint

Method add_index_hint

sql/sql_lex.cc:3407–3413  ·  view source on GitHub ↗

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 */

Source from the content-addressed store, hash-verified

3405 0 on success, non-zero otherwise
3406*/
3407bool 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
3416st_select_lex::type_enum st_select_lex::type(const THD *thd)

Callers

nothing calls this directly

Calls 1

push_frontMethod · 0.45

Tested by

no test coverage detected