mirror of
https://github.com/MariaDB/server.git
synced 2026-05-07 07:35:32 +02:00
Bug#16180 Setting SQL_LOG_OFF without SUPER privilege is silently ignored
mysql-test/r/grant2.result: Added results for bug#16180 mysql-test/t/grant2.test: Added test for bug# 16180 sql/set_var.cc: Verify user has appropiate rights before setting the sql_log_off system variable.
This commit is contained in:
parent
f4a07612ef
commit
0f9725ad1f
3 changed files with 29 additions and 1 deletions
|
|
@ -423,7 +423,8 @@ static sys_var_thd_bit sys_sql_big_tables("sql_big_tables", 0,
|
|||
static sys_var_thd_bit sys_big_selects("sql_big_selects", 0,
|
||||
set_option_bit,
|
||||
OPTION_BIG_SELECTS);
|
||||
static sys_var_thd_bit sys_log_off("sql_log_off", 0,
|
||||
static sys_var_thd_bit sys_log_off("sql_log_off",
|
||||
check_log_update,
|
||||
set_option_bit,
|
||||
OPTION_LOG_OFF);
|
||||
static sys_var_thd_bit sys_log_update("sql_log_update",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue