summaryrefslogtreecommitdiff
path: root/sql/set_var.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/set_var.cc')
-rw-r--r--sql/set_var.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/set_var.cc b/sql/set_var.cc
index e631b8fdba7..3464661dff9 100644
--- a/sql/set_var.cc
+++ b/sql/set_var.cc
@@ -4003,6 +4003,14 @@ err:
}
+void sys_var_thd_optimizer_switch::set_default(THD *thd, enum_var_type type)
+{
+ if (type == OPT_GLOBAL)
+ global_system_variables.*offset= OPTIMIZER_SWITCH_DEFAULT;
+ else
+ thd->variables.*offset= global_system_variables.*offset;
+}
+
/****************************************************************************
Named list handling
****************************************************************************/