mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
fix an old bug where dd_frm_type() could incorrectly determine the table type
for dynamic engines (because it only looked at the one-byte code, not at the full engine name).
This commit is contained in:
@@ -486,6 +486,12 @@ int ha_initialize_handlerton(st_plugin_int *plugin)
|
||||
{
|
||||
uint tmp;
|
||||
ulong fslot;
|
||||
|
||||
DBUG_EXECUTE_IF("unstable_db_type", {
|
||||
static int i= (int) DB_TYPE_FIRST_DYNAMIC;
|
||||
hton->db_type= (enum legacy_db_type)++i;
|
||||
});
|
||||
|
||||
/* now check the db_type for conflict */
|
||||
if (hton->db_type <= DB_TYPE_UNKNOWN ||
|
||||
hton->db_type >= DB_TYPE_DEFAULT ||
|
||||
|
Reference in New Issue
Block a user