diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2018-10-15 12:06:00 +0200 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2018-10-15 12:06:00 +0200 |
commit | dc3a20b191362227a6f85fadfc3a8b6c76f69ec6 (patch) | |
tree | 65dd8f104853aa5f7ec192400f59596f404c2bdc /sql | |
parent | 9905949b414740cdb15d5048b3289e4c5bb54f93 (diff) | |
download | mariadb-git-dc3a20b191362227a6f85fadfc3a8b6c76f69ec6.tar.gz |
MDEV-14429 sql_safe_updates in my.cnf not work
Diffstat (limited to 'sql')
-rw-r--r-- | sql/sys_vars.cc | 2 | ||||
-rw-r--r-- | sql/sys_vars.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/sql/sys_vars.cc b/sql/sys_vars.cc index ffe861ddfbc..080e74ce367 100644 --- a/sql/sys_vars.cc +++ b/sql/sys_vars.cc @@ -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( diff --git a/sql/sys_vars.h b/sql/sys_vars.h index dbe27ab107e..c21bf8244f0 100644 --- a/sql/sys_vars.h +++ b/sql/sys_vars.h @@ -1443,7 +1443,6 @@ public: 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) |