Commit dc3a20b1 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

MDEV-14429 sql_safe_updates in my.cnf not work

parent 9905949b
......@@ -790,6 +790,7 @@ The following specify which files/extra groups are read (specified before remain
this size
--sql-mode=name Syntax: sql-mode=mode[,mode[,mode...]]. See the manual
for the complete list of valid sql modes
--sql-safe-updates sql_safe_updates
--stack-trace Print a symbolic stack trace on failure
(Defaults to on; use --skip-stack-trace to disable.)
--stored-program-cache=#
......@@ -1081,6 +1082,7 @@ slow-launch-time 2
slow-query-log FALSE
sort-buffer-size 2097152
sql-mode
sql-safe-updates FALSE
stack-trace TRUE
stored-program-cache 256
symbolic-links FALSE
......
......@@ -2719,7 +2719,7 @@ static Sys_var_bit Sys_auto_is_null(
static Sys_var_bit Sys_safe_updates(
"sql_safe_updates", "sql_safe_updates",
SESSION_VAR(option_bits), NO_CMD_LINE, OPTION_SAFE_UPDATES,
SESSION_VAR(option_bits), CMD_LINE(REQUIRED_ARG), OPTION_SAFE_UPDATES,
DEFAULT(FALSE));
static Sys_var_bit Sys_buffer_results(
......
......@@ -1443,7 +1443,6 @@ class Sys_var_bit: public Sys_var_typelib
bitmask= reverse_semantics ? ~bitmask_arg : bitmask_arg;
set(global_var_ptr(), def_val);
SYSVAR_ASSERT(def_val < 2);
SYSVAR_ASSERT(getopt.id == -1); // force NO_CMD_LINE
SYSVAR_ASSERT(size == sizeof(ulonglong));
}
bool session_update(THD *thd, set_var *var)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment