summaryrefslogtreecommitdiff
path: root/sql/sys_vars.cc
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2018-10-15 12:06:00 +0200
committerSergei Golubchik <serg@mariadb.org>2018-11-06 13:36:50 +0100
commit564a63b5a35b644dc038965b4cf3b0cbfdc398af (patch)
tree68076626d87c4d2ce7c37e99d237fdc97eace0ae /sql/sys_vars.cc
parent4990b0e1ee463d98c773429e0007b11eb335ae79 (diff)
downloadmariadb-git-564a63b5a35b644dc038965b4cf3b0cbfdc398af.tar.gz
MDEV-14429 sql_safe_updates in my.cnf not work
Diffstat (limited to 'sql/sys_vars.cc')
-rw-r--r--sql/sys_vars.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sys_vars.cc b/sql/sys_vars.cc
index 6d4c135683a..369c9a6222a 100644
--- a/sql/sys_vars.cc
+++ b/sql/sys_vars.cc
@@ -4119,7 +4119,7 @@ static Sys_var_bit Sys_safe_updates(
"sql_safe_updates", "If set to 1, UPDATEs and DELETEs need either a key in "
"the WHERE clause, or a LIMIT clause, or else they will aborted. Prevents "
"the common mistake of accidentally deleting or updating every row in a table.",
- SESSION_VAR(option_bits), NO_CMD_LINE, OPTION_SAFE_UPDATES,
+ SESSION_VAR(option_bits), CMD_LINE(OPT_ARG), OPTION_SAFE_UPDATES,
DEFAULT(FALSE));
static Sys_var_bit Sys_buffer_results(