1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

Bug #17499 Alter table of ndb partitioned tables causes mysqld to core

This commit is contained in:
tomas@poseidon.ndb.mysql.com
2006-02-27 17:04:49 +01:00
parent 1f30b1525a
commit bfc43d5745
2 changed files with 106 additions and 0 deletions

View File

@@ -5183,6 +5183,8 @@ copy_data_between_tables(TABLE *from,TABLE *to,
*/
to->file->ha_set_all_bits_in_write_set();
from->file->ha_retrieve_all_cols();
if (from->part_info)
bitmap_set_all(&(from->part_info->used_partitions));
init_read_record(&info, thd, from, (SQL_SELECT *) 0, 1,1);
if (ignore ||
handle_duplicates == DUP_REPLACE)