1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

IB: TRT is not updated on ADD SYSTEM VERSIONING [fixes #413]

This commit is contained in:
Eugene Kosov
2017-12-20 22:46:28 +03:00
committed by GitHub
parent 6e530d4df5
commit acdfacee75
8 changed files with 135 additions and 19 deletions

View File

@@ -1415,7 +1415,8 @@ int ha_commit_trans(THD *thd, bool all)
}
#if 1 // FIXME: This should be done in ha_prepare().
if (rw_trans)
if (rw_trans || (thd->lex->sql_command == SQLCOM_ALTER_TABLE &&
thd->lex->alter_info.flags & Alter_info::ALTER_ADD_SYSTEM_VERSIONING))
{
ulonglong trx_start_id= 0, trx_end_id= 0;
for (Ha_trx_info *ha_info= trans->ha_list; ha_info; ha_info= ha_info->next())