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
f354e457
Commit
f354e457
authored
Apr 27, 2022
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#33578113: DROP privilege on performance_schema.* can't be revoked
test case only
parent
1430cf78
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
9 deletions
+19
-9
mysql-test/r/grant.result
mysql-test/r/grant.result
+8
-2
mysql-test/t/grant.test
mysql-test/t/grant.test
+11
-7
No files found.
mysql-test/r/grant.result
View file @
f354e457
...
...
@@ -2,8 +2,6 @@ set GLOBAL sql_mode="";
set LOCAL sql_mode="";
SET @old_log_bin_trust_function_creators= @@global.log_bin_trust_function_creators;
SET GLOBAL log_bin_trust_function_creators = 1;
drop table if exists t1;
drop database if exists mysqltest;
connect master,localhost,root,,;
connection master;
SET NAMES binary;
...
...
@@ -2785,5 +2783,13 @@ DROP USER foo;
DROP TABLE db.t;
DROP DATABASE db;
#
# Bug#33578113: DROP privilege on performance_schema.* can't be revoked
#
connection default;
CREATE USER bug33578113;
GRANT DROP ON performance_schema.* TO bug33578113;
REVOKE DROP ON performance_schema.* FROM bug33578113;
DROP USER bug33578113;
#
# End of 10.2 tests
#
mysql-test/t/grant.test
View file @
f354e457
# Test of GRANT commands
# Grant tests not performed with embedded server
--
source
include
/
not_embedded
.
inc
--
source
include
/
not_embedded
.
inc
# Save the initial number of concurrent sessions
--
source
include
/
count_sessions
.
inc
...
...
@@ -11,12 +11,6 @@ set LOCAL sql_mode="";
SET
@
old_log_bin_trust_function_creators
=
@@
global
.
log_bin_trust_function_creators
;
SET
GLOBAL
log_bin_trust_function_creators
=
1
;
# Cleanup
--
disable_warnings
drop
table
if
exists
t1
;
drop
database
if
exists
mysqltest
;
--
enable_warnings
connect
(
master
,
localhost
,
root
,,);
connection
master
;
SET
NAMES
binary
;
...
...
@@ -2292,6 +2286,16 @@ DROP USER foo;
DROP
TABLE
db
.
t
;
DROP
DATABASE
db
;
--
echo
#
--
echo
# Bug#33578113: DROP privilege on performance_schema.* can't be revoked
--
echo
#
connection
default
;
CREATE
USER
bug33578113
;
GRANT
DROP
ON
performance_schema
.*
TO
bug33578113
;
REVOKE
DROP
ON
performance_schema
.*
FROM
bug33578113
;
DROP
USER
bug33578113
;
--
source
include
/
wait_until_count_sessions
.
inc
--
echo
#
--
echo
# End of 10.2 tests
--
echo
#
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