Commit edd65771 authored by Vicențiu Ciorbaru's avatar Vicențiu Ciorbaru

cleanup: whitespace fixes

parent 63da2118
...@@ -5720,8 +5720,8 @@ static int replace_user_table(THD *thd, const User_table &user_table, ...@@ -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, static int replace_db_table(TABLE *table, const char *db,
const LEX_USER &combo, const LEX_USER &combo,
privilege_t rights, const bool revoke_grant) privilege_t rights, const bool revoke_grant)
{ {
uint i; uint i;
ulonglong priv; ulonglong priv;
...@@ -8685,14 +8685,14 @@ bool mysql_grant(THD *thd, const char *db, List <LEX_USER> &list, ...@@ -8685,14 +8685,14 @@ bool mysql_grant(THD *thd, const char *db, List <LEX_USER> &list,
privilege_t db_rights(rights & DB_ACLS); privilege_t db_rights(rights & DB_ACLS);
if (db_rights == rights) if (db_rights == rights)
{ {
if (replace_db_table(tables.db_table().table(), db, *Str, db_rights, if (replace_db_table(tables.db_table().table(), db, *Str, db_rights,
revoke_grant)) revoke_grant))
result= true; result= true;
} }
else else
{ {
my_error(ER_WRONG_USAGE, MYF(0), "DB GRANT", "GLOBAL PRIVILEGES"); my_error(ER_WRONG_USAGE, MYF(0), "DB GRANT", "GLOBAL PRIVILEGES");
result= true; result= true;
} }
} }
else if (is_proxy) else if (is_proxy)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment