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
333434d2
Commit
333434d2
authored
Oct 13, 2010
by
Dmitry Shulga
Browse files
Options
Browse Files
Download
Plain Diff
Auto-merge from mysql-5.1-bugteam for bug#36742.
parents
cd81c833
8169faec
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
0 deletions
+27
-0
mysql-test/r/grant.result
mysql-test/r/grant.result
+11
-0
mysql-test/t/grant.test
mysql-test/t/grant.test
+10
-0
sql/sql_yacc.yy
sql/sql_yacc.yy
+6
-0
No files found.
mysql-test/r/grant.result
View file @
333434d2
...
...
@@ -1577,6 +1577,17 @@ DROP USER 'testbug'@localhost;
DROP TABLE db2.t1;
DROP DATABASE db1;
DROP DATABASE db2;
#
# Bug #36742
#
grant usage on Foo.* to myuser@Localhost identified by 'foo';
grant select on Foo.* to myuser@localhost;
select host,user from mysql.user where User='myuser';
host user
localhost myuser
revoke select on Foo.* from myuser@localhost;
delete from mysql.user where User='myuser';
flush privileges;
#########################################################################
#
# Bug#38347: ALTER ROUTINE privilege allows SHOW CREATE TABLE.
...
...
mysql-test/t/grant.test
View file @
333434d2
...
...
@@ -1578,6 +1578,16 @@ DROP TABLE db2.t1;
DROP
DATABASE
db1
;
DROP
DATABASE
db2
;
--
echo
#
--
echo
# Bug #36742
--
echo
#
grant
usage
on
Foo
.*
to
myuser
@
Localhost
identified
by
'foo'
;
grant
select
on
Foo
.*
to
myuser
@
localhost
;
select
host
,
user
from
mysql
.
user
where
User
=
'myuser'
;
revoke
select
on
Foo
.*
from
myuser
@
localhost
;
delete
from
mysql
.
user
where
User
=
'myuser'
;
flush
privileges
;
# Wait till we reached the initial number of concurrent sessions
--
source
include
/
wait_until_count_sessions
.
inc
...
...
sql/sql_yacc.yy
View file @
333434d2
...
...
@@ -12334,6 +12334,12 @@ user:
system_charset_info, 0) ||
check_host_name(&$$->host))
MYSQL_YYABORT;
/*
Convert hostname part of username to lowercase.
It's OK to use in-place lowercase as long as
the character set is utf8.
*/
my_casedn_str(system_charset_info, $$->host.str);
}
| CURRENT_USER optional_braces
{
...
...
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