1
0
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:
Sergei Golubchik
2013-08-28 22:16:13 +02:00
parent 68325b6a12
commit 28a9fea122
5 changed files with 102 additions and 5 deletions

View File

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