1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

SQL,IB: add auto_inc copy mode fix [#347]

Related to #212.

Extra update of sys_trx_start removed [#87].
This commit is contained in:
Aleksey Midenkov
2017-11-23 17:41:27 +03:00
parent b612f3baa2
commit cbe93291e4
9 changed files with 48 additions and 38 deletions

View File

@ -10180,14 +10180,9 @@ copy_data_between_tables(THD *thd, TABLE *from, TABLE *to,
if (keep_versioned && to->versioned_by_engine() &&
thd->variables.vers_alter_history != VERS_ALTER_HISTORY_SURVIVE)
{
to->s->versioned= false;
to->vers_write= false;
}
error= to->file->ha_write_row(to->record[0]);
if (keep_versioned && to->versioned_by_engine() &&
thd->variables.vers_alter_history != VERS_ALTER_HISTORY_SURVIVE)
{
to->s->versioned= true;
}
to->auto_increment_field_not_null= FALSE;
if (error)
{