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

BUG# 3658 ALTER TABLE corrupts table

Added  test file for ALTER TABLE, engine = ndbcluster
This commit is contained in:
magnus@neptunus.(none)
2004-05-05 16:04:23 +02:00
parent 6893acc1e8
commit 1d8bf1cb18
5 changed files with 84 additions and 2 deletions

View File

@ -3219,7 +3219,11 @@ copy_data_between_tables(TABLE *from,TABLE *to,
error= 1;
goto err;
}
/* Handler must be told explicitly to retrieve all columns, because
this function does not set field->query_id in the columns to the
current query id */
from->file->extra(HA_EXTRA_RETRIEVE_ALL_COLS);
init_read_record(&info, thd, from, (SQL_SELECT *) 0, 1,1);
if (handle_duplicates == DUP_IGNORE ||
handle_duplicates == DUP_REPLACE)