mirror of
https://github.com/MariaDB/server.git
synced 2026-04-26 18:25:30 +02:00
The patch for the task mdev-539.
The patch lifts the limitation of the current implementation of ALTER TABLE that does not allow to build unique/primary indexes by sort for MyISAM and Aria engines.
This commit is contained in:
parent
6c3de76ad5
commit
ca2cdaad86
23 changed files with 688 additions and 37 deletions
|
|
@ -7351,7 +7351,8 @@ copy_data_between_tables(THD *thd, TABLE *from,TABLE *to,
|
|||
MODE_STRICT_ALL_TABLES));
|
||||
|
||||
from->file->info(HA_STATUS_VARIABLE);
|
||||
to->file->ha_start_bulk_insert(from->file->stats.records);
|
||||
to->file->ha_start_bulk_insert(from->file->stats.records,
|
||||
ignore ? 0 : HA_CREATE_UNIQUE_INDEX_BY_SORT);
|
||||
errpos= 3;
|
||||
|
||||
copy_end=copy;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue