| 681 | |
| 682 | |
| 683 | static 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 | |
| 701 | Field **TABLE::field_to_fill() |
no test coverage detected