1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

SQL: don't update TRT when altered [#305, #302]

Tests affected: main.mysqlcheck
This commit is contained in:
Aleksey Midenkov
2017-11-14 15:47:01 +03:00
parent ecf259cacf
commit a4439fef96
3 changed files with 27 additions and 6 deletions

View File

@ -7430,7 +7430,7 @@ static bool mysql_inplace_alter_table(THD *thd,
{
TR_table trt(thd, true);
if (table->file->native_versioned())
if (table->file->native_versioned() && trt != *table_list)
{
if (opt_transaction_registry && trt.update())
return true;