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:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user