Skip to content

Commit c1204da

Browse files
committed
cleanup: bool_variable= -1; -> bool_variable= true;
1 parent 7f856f0 commit c1204da

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

sql/sql_acl.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6346,31 +6346,31 @@ bool mysql_grant(THD *thd, const char *db, List <LEX_USER> &list,
63466346
{
63476347
if (!(Str= get_current_user(thd, tmp_Str, false)))
63486348
{
6349-
result= TRUE;
6349+
result= true;
63506350
continue;
63516351
}
63526352

63536353
if (copy_and_check_auth(Str, tmp_Str, thd->lex))
6354-
result= -1;
6354+
result= true;
63556355
else
63566356
if (replace_user_table(thd, tables[USER_TABLE].table, *Str,
63576357
(!db ? rights : 0), revoke_grant, create_new_users,
63586358
MY_TEST(thd->variables.sql_mode &
63596359
MODE_NO_AUTO_CREATE_USER)))
6360-
result= -1;
6360+
result= true;
63616361
else if (db)
63626362
{
63636363
ulong db_rights= rights & DB_ACLS;
63646364
if (db_rights == rights)
63656365
{
63666366
if (replace_db_table(tables[DB_TABLE].table, db, *Str, db_rights,
63676367
revoke_grant))
6368-
result= -1;
6368+
result= true;
63696369
}
63706370
else
63716371
{
63726372
my_error(ER_WRONG_USAGE, MYF(0), "DB GRANT", "GLOBAL PRIVILEGES");
6373-
result= -1;
6373+
result= true;
63746374
}
63756375
}
63766376
else if (is_proxy)
@@ -6380,7 +6380,7 @@ bool mysql_grant(THD *thd, const char *db, List <LEX_USER> &list,
63806380
Str, proxied_user,
63816381
rights & GRANT_ACL ? TRUE : FALSE,
63826382
revoke_grant))
6383-
result= -1;
6383+
result= true;
63846384
}
63856385
if (Str->is_role())
63866386
propagate_role_grants(find_acl_role(Str->user.str),

0 commit comments

Comments
 (0)