diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 0dcb59f689d..41705fb82e7 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -2781,7 +2781,7 @@ unsent_create_error: TABLE *table= tables->table; /* Skip first table, which is the table we are inserting in */ tables= (TABLE_LIST *) - lex->select_lex.table_list.first= (byte*) first_local_table->next; + (lex->select_lex.table_list.first= (byte*) first_local_table->next); first_local_table->next= 0; if (!(res= mysql_prepare_insert(thd, tables, first_local_table,