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

Handle default engine type better for

partitioned tables
This commit is contained in:
pappa@c-1309e253.1238-1-64736c10.cust.bredbandsbolaget.se
2005-09-20 10:29:59 -04:00
parent f8d8548a93
commit 2530fcde11
11 changed files with 90 additions and 24 deletions

View File

@ -3081,7 +3081,7 @@ void get_partition_set(const TABLE *table, byte *buf, const uint index,
*/
bool mysql_unpack_partition(File file, THD *thd, uint part_info_len,
TABLE* table)
TABLE* table, enum db_type default_db_type)
{
Item *thd_free_list= thd->free_list;
bool result= TRUE;
@ -3119,6 +3119,12 @@ bool mysql_unpack_partition(File file, THD *thd, uint part_info_len,
}
part_info= lex.part_info;
table->s->part_info= part_info;
if (part_info->default_engine_type == DB_TYPE_UNKNOWN)
part_info->default_engine_type= default_db_type;
else
{
DBUG_ASSERT(part_info->default_engine_type == default_db_type);
}
part_info->item_free_list= thd->free_list;
{