mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Made set_part_info a handler method and not a ha_partition method only
The previous variant where it was a specific ha_partition method only worked for the partition handler. It was unfortunately called also for the NDB handler and in this case it called a random method in the NDB handler with random input.
This commit is contained in:
@ -3128,7 +3128,7 @@ bool mysql_unpack_partition(THD *thd, const uchar *part_buf,
|
||||
}
|
||||
part_info= lex.part_info;
|
||||
table->part_info= part_info;
|
||||
((ha_partition*)table->file)->set_part_info(part_info);
|
||||
table->file->set_part_info(part_info);
|
||||
if (part_info->default_engine_type == DB_TYPE_UNKNOWN)
|
||||
part_info->default_engine_type= default_db_type;
|
||||
else
|
||||
|
Reference in New Issue
Block a user