mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-8219: enforce_storage_engine cannot be set globally
Change session only variable enforce_storage_engine to be session variable and make sure that also global value is used if session variable is not set.
This commit is contained in:
@ -9772,7 +9772,8 @@ static bool check_engine(THD *thd, const char *db_name,
|
||||
DBUG_ENTER("check_engine");
|
||||
handlerton **new_engine= &create_info->db_type;
|
||||
handlerton *req_engine= *new_engine;
|
||||
handlerton *enf_engine= thd->variables.enforced_table_plugin ? plugin_hton(thd->variables.enforced_table_plugin) : NULL;
|
||||
handlerton *enf_engine= thd->variables.enforced_table_plugin ?
|
||||
plugin_hton(thd->variables.enforced_table_plugin) : NULL;
|
||||
bool no_substitution= thd->variables.sql_mode & MODE_NO_ENGINE_SUBSTITUTION;
|
||||
*new_engine= ha_checktype(thd, req_engine, no_substitution);
|
||||
DBUG_ASSERT(*new_engine);
|
||||
|
Reference in New Issue
Block a user