1
0
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:
holyfoot/hf@mysql.com/hfmain.(none)
2007-10-31 16:01:29 +04:00
parent 69ed192e72
commit edbf4120f6
3 changed files with 29 additions and 1 deletions

View File

@ -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,