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
edd65771
Commit
edd65771
authored
Nov 15, 2021
by
Vicențiu Ciorbaru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup: whitespace fixes
parent
63da2118
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
sql/sql_acl.cc
sql/sql_acl.cc
+7
-7
No files found.
sql/sql_acl.cc
View file @
edd65771
...
...
@@ -5720,8 +5720,8 @@ static int replace_user_table(THD *thd, const User_table &user_table,
*/
static
int
replace_db_table
(
TABLE
*
table
,
const
char
*
db
,
const
LEX_USER
&
combo
,
privilege_t
rights
,
const
bool
revoke_grant
)
const
LEX_USER
&
combo
,
privilege_t
rights
,
const
bool
revoke_grant
)
{
uint
i
;
ulonglong
priv
;
...
...
@@ -8685,14 +8685,14 @@ bool mysql_grant(THD *thd, const char *db, List <LEX_USER> &list,
privilege_t
db_rights
(
rights
&
DB_ACLS
);
if
(
db_rights
==
rights
)
{
if
(
replace_db_table
(
tables
.
db_table
().
table
(),
db
,
*
Str
,
db_rights
,
revoke_grant
))
result
=
true
;
if
(
replace_db_table
(
tables
.
db_table
().
table
(),
db
,
*
Str
,
db_rights
,
revoke_grant
))
result
=
true
;
}
else
{
my_error
(
ER_WRONG_USAGE
,
MYF
(
0
),
"DB GRANT"
,
"GLOBAL PRIVILEGES"
);
result
=
true
;
my_error
(
ER_WRONG_USAGE
,
MYF
(
0
),
"DB GRANT"
,
"GLOBAL PRIVILEGES"
);
result
=
true
;
}
}
else
if
(
is_proxy
)
...
...
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