mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Merge c-870ae253.1238-1-64736c10.cust.bredbandsbolaget.se:/home/pappa/bug19140
into c-870ae253.1238-1-64736c10.cust.bredbandsbolaget.se:/home/pappa/bug19010
This commit is contained in:
commit
640a4de065
@@ -3139,8 +3139,8 @@ bool mysql_create_table_internal(THD *thd,
|
||||
}
|
||||
DBUG_PRINT("info", ("db_type = %d",
|
||||
ha_legacy_type(part_info->default_engine_type)));
|
||||
if (part_info->check_partition_info( &engine_type, file,
|
||||
create_info->max_rows))
|
||||
if (part_info->check_partition_info(&engine_type, file,
|
||||
create_info->max_rows))
|
||||
goto err;
|
||||
part_info->default_engine_type= engine_type;
|
||||
|
||||
@@ -3199,6 +3199,12 @@ bool mysql_create_table_internal(THD *thd,
|
||||
}
|
||||
else if (create_info->db_type != engine_type)
|
||||
{
|
||||
/*
|
||||
We come here when we don't use a partitioned handler.
|
||||
Since we use a partitioned table it must be "native partitioned".
|
||||
We have switched engine from defaults, most likely only specified
|
||||
engines in partition clauses.
|
||||
*/
|
||||
delete file;
|
||||
if (!(file= get_new_handler((TABLE_SHARE*) 0, thd->mem_root, engine_type)))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user