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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
2781050a
Commit
2781050a
authored
Jun 27, 2006
by
iggy@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#16180 Setting SQL_LOG_OFF without SUPER privilege is silently ignored
parent
ffd8ed17
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
1 deletion
+29
-1
mysql-test/r/grant2.result
mysql-test/r/grant2.result
+10
-0
mysql-test/t/grant2.test
mysql-test/t/grant2.test
+17
-0
sql/set_var.cc
sql/set_var.cc
+2
-1
No files found.
mysql-test/r/grant2.result
View file @
2781050a
...
@@ -143,3 +143,13 @@ flush privileges;
...
@@ -143,3 +143,13 @@ flush privileges;
drop user mysqltest_3@host3;
drop user mysqltest_3@host3;
drop user mysqltest_1@host1, mysqltest_2@host2, mysqltest_4@host4,
drop user mysqltest_1@host1, mysqltest_2@host2, mysqltest_4@host4,
mysqltest_5@host5, mysqltest_6@host6, mysqltest_7@host7;
mysqltest_5@host5, mysqltest_6@host6, mysqltest_7@host7;
create database mysqltest_1;
grant select, insert, update on `mysqltest\_1`.* to mysqltest_1@localhost;
set sql_log_off = 1;
ERROR HY000: Access denied; you need the SUPER privilege for this operation
set sql_log_bin = 0;
ERROR HY000: Access denied; you need the SUPER privilege for this operation
delete from mysql.user where user like 'mysqltest\_1';
delete from mysql.db where user like 'mysqltest\_1';
drop database mysqltest_1;
flush privileges;
mysql-test/t/grant2.test
View file @
2781050a
...
@@ -238,5 +238,22 @@ connect (con9,127.0.0.1,root,,test,$MASTER_MYPORT,);
...
@@ -238,5 +238,22 @@ connect (con9,127.0.0.1,root,,test,$MASTER_MYPORT,);
disconnect
con9
;
disconnect
con9
;
connection
default
;
connection
default
;
#
# Bug# 16180 - Setting SQL_LOG_OFF without SUPER privilege is silently ignored
#
create
database
mysqltest_1
;
grant
select
,
insert
,
update
on
`mysqltest\_1`
.*
to
mysqltest_1
@
localhost
;
connect
(
con10
,
localhost
,
mysqltest_1
,,);
connection
con10
;
--
error
1227
set
sql_log_off
=
1
;
--
error
1227
set
sql_log_bin
=
0
;
disconnect
con10
;
connection
default
;
delete
from
mysql
.
user
where
user
like
'mysqltest\_1'
;
delete
from
mysql
.
db
where
user
like
'mysqltest\_1'
;
drop
database
mysqltest_1
;
flush
privileges
;
# End of 4.1 tests
# End of 4.1 tests
sql/set_var.cc
View file @
2781050a
...
@@ -423,7 +423,8 @@ static sys_var_thd_bit sys_sql_big_tables("sql_big_tables", 0,
...
@@ -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
,
static
sys_var_thd_bit
sys_big_selects
(
"sql_big_selects"
,
0
,
set_option_bit
,
set_option_bit
,
OPTION_BIG_SELECTS
);
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
,
set_option_bit
,
OPTION_LOG_OFF
);
OPTION_LOG_OFF
);
static
sys_var_thd_bit
sys_log_update
(
"sql_log_update"
,
static
sys_var_thd_bit
sys_log_update
(
"sql_log_update"
,
...
...
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