Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
564a63b5
Commit
564a63b5
authored
Oct 15, 2018
by
Vladislav Vaintroub
Committed by
Sergei Golubchik
Nov 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-14429 sql_safe_updates in my.cnf not work
parent
4990b0e1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
mysql-test/main/mysqld--help.result
mysql-test/main/mysqld--help.result
+5
-0
mysql-test/suite/sys_vars/r/sysvars_server_notembedded.result
...l-test/suite/sys_vars/r/sysvars_server_notembedded.result
+1
-1
sql/sys_vars.cc
sql/sys_vars.cc
+1
-1
No files found.
mysql-test/main/mysqld--help.result
View file @
564a63b5
...
...
@@ -1209,6 +1209,10 @@ The following specify which files/extra groups are read (specified before remain
NO_AUTO_CREATE_USER, HIGH_NOT_PRECEDENCE,
NO_ENGINE_SUBSTITUTION, PAD_CHAR_TO_FULL_LENGTH,
EMPTY_STRING_IS_NULL, SIMULTANEOUS_ASSIGNMENT
--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.
--stack-trace Print a symbolic stack trace on failure
(Defaults to on; use --skip-stack-trace to disable.)
--standard-compliant-cte
...
...
@@ -1664,6 +1668,7 @@ slow-launch-time 2
slow-query-log FALSE
sort-buffer-size 2097152
sql-mode STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
sql-safe-updates FALSE
stack-trace TRUE
standard-compliant-cte TRUE
stored-program-cache 256
...
...
mysql-test/suite/sys_vars/r/sysvars_server_notembedded.result
View file @
564a63b5
...
...
@@ -4799,7 +4799,7 @@ NUMERIC_MAX_VALUE NULL
NUMERIC_BLOCK_SIZE NULL
ENUM_VALUE_LIST OFF,ON
READ_ONLY NO
COMMAND_LINE_ARGUMENT
NUL
L
COMMAND_LINE_ARGUMENT
OPTIONA
L
VARIABLE_NAME SQL_SELECT_LIMIT
SESSION_VALUE 18446744073709551615
GLOBAL_VALUE 18446744073709551615
...
...
sql/sys_vars.cc
View file @
564a63b5
...
...
@@ -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
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment