Commit 04b52a07 authored by Nirbhay Choubey's avatar Nirbhay Choubey

MDEV-7635: Part 2

New default sql_mode includes:
* STRICT_TRANS_TABLES
* ERROR_FOR_DIVISION_BY_ZERO
* NO_ENGINE_SUBSTITUTION
* NO_AUTO_CREATE_USER
parent f8aa54f1
......@@ -3118,7 +3118,9 @@ static Sys_var_set Sys_sql_mode(
"Sets the sql mode",
SESSION_VAR(sql_mode), CMD_LINE(REQUIRED_ARG),
sql_mode_names,
DEFAULT(MODE_NO_ENGINE_SUBSTITUTION |
DEFAULT(MODE_STRICT_TRANS_TABLES |
MODE_ERROR_FOR_DIVISION_BY_ZERO |
MODE_NO_ENGINE_SUBSTITUTION |
MODE_NO_AUTO_CREATE_USER),
NO_MUTEX_GUARD, NOT_IN_BINLOG,
ON_CHECK(check_sql_mode), ON_UPDATE(fix_sql_mode));
......
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