mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
SQL: duplicate of historical row fix [#365 bug 7]
Tests affected (forced mode): main.type_timestamp
This commit is contained in:
@ -1870,8 +1870,11 @@ int write_record(THD *thd, TABLE *table,COPY_INFO *info)
|
||||
store_record(table, record[2]);
|
||||
if ((error= vers_insert_history_row(table)))
|
||||
{
|
||||
info->last_errno= error;
|
||||
table->file->print_error(error, MYF(0));
|
||||
trg_error= 1;
|
||||
restore_record(table, record[2]);
|
||||
goto err;
|
||||
goto ok_or_after_trg_err;
|
||||
}
|
||||
restore_record(table, record[2]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user