681
678
/* it should be allocated before Item::fix_fields() */
682
679
if (table_list->set_insert_values(thd->mem_root))
686
683
if (mysql_prepare_insert_check_table(thd, table_list, fields, select_insert))
690
687
/* Prepare the fields in the statement. */
693
690
/* if we have INSERT ... VALUES () we cannot have a GROUP BY clause */
696
693
/* Save the state of the current name resolution context. */
697
694
ctx_state.save_state(context, table_list);