MCPcopy Create free account
hub / github.com/MariaDB/server / append_possible_keys

Function append_possible_keys

sql/sql_select.cc:31029–31040  ·  view source on GitHub ↗

//////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

31027
31028///////////////////////////////////////////////////////////////////////////////
31029int append_possible_keys(MEM_ROOT *alloc, String_list &list, TABLE *table,
31030 key_map possible_keys)
31031{
31032 uint j;
31033 for (j=0 ; j < table->s->keys ; j++)
31034 {
31035 if (possible_keys.is_set(j))
31036 if (!(list.append_str(alloc, table->key_info[j].name.str)))
31037 return 1;
31038 }
31039 return 0;
31040}
31041
31042
31043bool JOIN_TAB::save_explain_data(Explain_table_access *eta,

Callers 2

save_explain_dataMethod · 0.85

Calls 2

append_strMethod · 0.80
is_setMethod · 0.45

Tested by

no test coverage detected