1
0
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:
Aleksey Midenkov
2017-12-02 19:52:26 +03:00
parent a3802ecb58
commit 70b82f641c
3 changed files with 32 additions and 71 deletions

View File

@ -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]);
}