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
6b386c08
Commit
6b386c08
authored
Jan 11, 2003
by
Sinisa@sinisa.nasamreza.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for a bug in SHOW GRANTS when :
grant on database.* to xx@yy with grant option; is done.
parent
b6b2fbe9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
1 deletion
+11
-1
mysql-test/r/grant.result
mysql-test/r/grant.result
+5
-0
mysql-test/t/grant.test
mysql-test/t/grant.test
+3
-0
sql/item.cc
sql/item.cc
+1
-1
sql/sql_acl.cc
sql/sql_acl.cc
+2
-0
No files found.
mysql-test/r/grant.result
View file @
6b386c08
...
...
@@ -64,3 +64,8 @@ GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, CREATE TE
revoke all privileges on mysqltest.* from mysqltest_1@localhost;
delete from mysql.user where user='mysqltest_1';
flush privileges;
grant usage on test.* to user@localhost with grant option;
show grants for user@localhost;
Grants for user@localhost
GRANT USAGE ON *.* TO 'user'@'localhost'
GRANT USAGE ON `test`.* TO 'user'@'localhost' WITH GRANT OPTION
mysql-test/t/grant.test
View file @
6b386c08
...
...
@@ -39,3 +39,6 @@ show grants for mysqltest_1@localhost;
revoke
all
privileges
on
mysqltest
.*
from
mysqltest_1
@
localhost
;
delete
from
mysql
.
user
where
user
=
'mysqltest_1'
;
flush
privileges
;
grant
usage
on
test
.*
to
user
@
localhost
with
grant
option
;
show
grants
for
user
@
localhost
;
sql/item.cc
View file @
6b386c08
...
...
@@ -505,7 +505,7 @@ bool Item::save_in_field(Field *field, bool no_conversions)
{
double
nr
=
val
();
if
(
null_value
)
return
set_field_to_null
(
field
);
return
set_field_to_null
_with_conversions
(
field
,
no_conversions
);
field
->
set_notnull
();
field
->
store
(
nr
);
}
...
...
sql/sql_acl.cc
View file @
6b386c08
...
...
@@ -2894,6 +2894,8 @@ int mysql_show_grants(THD *thd,LEX_USER *lex_user)
if
(
test_all_bits
(
want_access
,(
DB_ACLS
&
~
GRANT_ACL
)))
db
.
append
(
"ALL PRIVILEGES"
,
14
);
else
if
(
!
(
want_access
&
~
GRANT_ACL
))
db
.
append
(
"USAGE"
,
5
);
else
{
int
found
=
0
,
cnt
;
...
...
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