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,
*/
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)
......
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