1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +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

@@ -979,6 +979,7 @@ TABLE *open_table(THD *thd,const char *db,const char *table_name,
if (table->timestamp_field)
table->timestamp_field_type= table->timestamp_field->get_auto_set_type();
DBUG_ASSERT(table->key_read == 0);
DBUG_ASSERT(table->insert_values == 0);
DBUG_RETURN(table);
}