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
3db4d018
Commit
3db4d018
authored
Jun 18, 2019
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'bb-10.4-release' into 10.4
parents
48570eb6
b8e655ce
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
mysql-test/main/grant5.result
mysql-test/main/grant5.result
+3
-0
mysql-test/main/grant5.test
mysql-test/main/grant5.test
+7
-0
sql/sql_acl.cc
sql/sql_acl.cc
+1
-1
No files found.
mysql-test/main/grant5.result
View file @
3db4d018
...
...
@@ -127,3 +127,6 @@ disconnect conn1;
connection default;
drop database mysqltest_1;
drop user twg@'%';
insert mysql.tables_priv (host,db,user,table_name,grantor,table_priv) values ('localhost','','otto','t1','root@localhost','select');
flush privileges;
delete from mysql.tables_priv where db='';
mysql-test/main/grant5.test
View file @
3db4d018
...
...
@@ -124,3 +124,10 @@ connection default;
drop
database
mysqltest_1
;
drop
user
twg
@
'%'
;
#
# test the empty db case
#
insert
mysql
.
tables_priv
(
host
,
db
,
user
,
table_name
,
grantor
,
table_priv
)
values
(
'localhost'
,
''
,
'otto'
,
't1'
,
'root@localhost'
,
'select'
);
flush
privileges
;
delete
from
mysql
.
tables_priv
where
db
=
''
;
sql/sql_acl.cc
View file @
3db4d018
...
...
@@ -5084,7 +5084,6 @@ GRANT_NAME::GRANT_NAME(TABLE *form, bool is_routine)
update_hostname
(
&
host
,
hostname
);
db
=
get_field
(
&
grant_memroot
,
form
->
field
[
1
]);
sort
=
get_magic_sort
(
"hdu"
,
host
.
hostname
,
db
,
user
);
tname
=
get_field
(
&
grant_memroot
,
form
->
field
[
3
]);
if
(
!
db
||
!
tname
)
{
...
...
@@ -5092,6 +5091,7 @@ GRANT_NAME::GRANT_NAME(TABLE *form, bool is_routine)
privs
=
0
;
return
;
/* purecov: inspected */
}
sort
=
get_magic_sort
(
"hdu"
,
host
.
hostname
,
db
,
user
);
if
(
lower_case_table_names
)
{
my_casedn_str
(
files_charset_info
,
db
);
...
...
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