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
fea55c7f
Commit
fea55c7f
authored
Oct 13, 2010
by
Dmitry Shulga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug#36742 - GRANT hostname case handling inconsistent.
parent
d7767d4a
Changes
3
Hide 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 @
fea55c7f
...
...
@@ -1429,3 +1429,14 @@ 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;
mysql-test/t/grant.test
View file @
fea55c7f
...
...
@@ -1550,5 +1550,15 @@ 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 @
fea55c7f
...
...
@@ -11567,6 +11567,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