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

Function save_insert_query_plan

sql/sql_insert.cc:683–698  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

681
682
683static void save_insert_query_plan(THD* thd, TABLE_LIST *table_list)
684{
685 Explain_insert* explain= new (thd->mem_root) Explain_insert(thd->mem_root);
686 explain->table_name.append(table_list->table->alias);
687
688 thd->lex->explain->add_insert_plan(explain);
689
690 /* Save subquery children */
691 for (SELECT_LEX_UNIT *unit= thd->lex->first_select_lex()->first_inner_unit();
692 unit;
693 unit= unit->next_unit())
694 {
695 if (unit->explainable())
696 explain->add_child(unit->first_select()->select_number);
697 }
698}
699
700
701Field **TABLE::field_to_fill()

Callers 1

mysql_insertFunction · 0.85

Calls 8

add_insert_planMethod · 0.80
first_inner_unitMethod · 0.80
first_select_lexMethod · 0.80
next_unitMethod · 0.80
explainableMethod · 0.80
add_childMethod · 0.80
first_selectMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected