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
f6b8f6d1
Commit
f6b8f6d1
authored
Oct 23, 2013
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reset the db privilege cache when revoking db priviges on DROP ROLE
parent
61447892
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
mysql-test/suite/roles/set_and_drop.result
mysql-test/suite/roles/set_and_drop.result
+2
-0
sql/sql_acl.cc
sql/sql_acl.cc
+1
-0
No files found.
mysql-test/suite/roles/set_and_drop.result
View file @
f6b8f6d1
...
@@ -95,6 +95,8 @@ pr1
...
@@ -95,6 +95,8 @@ pr1
pr1
pr1
drop role role1;
drop role role1;
flush tables;
flush tables;
select * from mysql.roles_mapping;
ERROR 42000: SELECT command denied to user 'foo'@'localhost' for table 'roles_mapping'
select * from mysqltest1.t1;
select * from mysqltest1.t1;
ERROR 42000: SELECT command denied to user 'foo'@'localhost' for table 't1'
ERROR 42000: SELECT command denied to user 'foo'@'localhost' for table 't1'
select a from mysqltest1.t2;
select a from mysqltest1.t2;
...
...
sql/sql_acl.cc
View file @
f6b8f6d1
...
@@ -8882,6 +8882,7 @@ static int handle_grant_data(TABLE_LIST *tables, bool drop,
...
@@ -8882,6 +8882,7 @@ static int handle_grant_data(TABLE_LIST *tables, bool drop,
/* If search is requested, we do not need to search further. */
/* If search is requested, we do not need to search further. */
if
(
search_only
)
if
(
search_only
)
goto
end
;
goto
end
;
acl_cache
->
clear
(
1
);
}
}
}
}
...
...
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