1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-30 11:22:14 +03:00

Move reset of insert_values to ensure it's done also during error conditions

This fixed a failure of insert_update.test on some platforms
This commit is contained in:
monty@mysql.com
2005-06-28 15:06:16 +03:00
parent 46536c3a60
commit 10c4678def
5 changed files with 8 additions and 3 deletions

View File

@@ -2891,12 +2891,12 @@ unsent_create_error:
/* revert changes for SP */
lex->select_lex.resolve_mode= SELECT_LEX::INSERT_MODE;
delete result;
insert_table->insert_values= 0;
if (thd->net.report_error)
res= -1;
}
else
res= -1;
insert_table->insert_values= 0; // Set by mysql_prepare_insert()
first_local_table->next= tables;
lex->select_lex.table_list.first= (byte*) first_local_table;
break;