mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Bug #31893 Partitions: crash if subpartitions and engine change.
The new default database engine for altered table was reassigned to the old one. That's wrong thing by itself, and (as the engine for a subpartition gets that new value) leads to DBUG_ASSERTION in mysql_unpack_partition()
This commit is contained in:
@ -5031,7 +5031,10 @@ the generated partition syntax in a correct manner.
|
||||
*partition_changed= TRUE;
|
||||
}
|
||||
if (create_info->db_type == partition_hton)
|
||||
part_info->default_engine_type= table->part_info->default_engine_type;
|
||||
{
|
||||
if (!part_info->default_engine_type)
|
||||
part_info->default_engine_type= table->part_info->default_engine_type;
|
||||
}
|
||||
else
|
||||
part_info->default_engine_type= create_info->db_type;
|
||||
if (check_native_partitioned(create_info, &is_native_partitioned,
|
||||
|
Reference in New Issue
Block a user