@@ -1683,7 +1683,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b, ulong *yystacksize);
1683
1683
%token UPDATE_SYM /* SQL-2003-R */
1684
1684
%token UPGRADE_SYM
1685
1685
%token USAGE /* SQL-2003-N */
1686
- %token USER /* SQL-2003-R */
1686
+ %token USER_SYM /* SQL-2003-R */
1687
1687
%token USE_FRM
1688
1688
%token USE_SYM
1689
1689
%token USING /* SQL-2003-R */
@@ -2632,7 +2632,7 @@ create:
2632
2632
Lex->create_view_suid= TRUE;
2633
2633
}
2634
2634
view_or_trigger_or_sp_or_event { }
2635
- | create_or_replace USER opt_if_not_exists clear_privileges grant_list
2635
+ | create_or_replace USER_SYM opt_if_not_exists clear_privileges grant_list
2636
2636
opt_require_clause opt_resource_options
2637
2637
{
2638
2638
if (Lex->set_command_with_check(SQLCOM_CREATE_USER, $1 | $3))
@@ -2675,7 +2675,7 @@ server_options_list:
2675
2675
;
2676
2676
2677
2677
server_option:
2678
- USER TEXT_STRING_sys
2678
+ USER_SYM TEXT_STRING_sys
2679
2679
{
2680
2680
MYSQL_YYABORT_UNLESS(Lex->server_options.username.str == 0);
2681
2681
Lex->server_options.username= $2;
@@ -7289,7 +7289,7 @@ alter:
7289
7289
lex->server_options.reset($3);
7290
7290
} OPTIONS_SYM '(' server_options_list ')' { }
7291
7291
/* ALTER USER foo is allowed for MySQL compatibility. */
7292
- | ALTER opt_if_exists USER clear_privileges grant_list
7292
+ | ALTER opt_if_exists USER_SYM clear_privileges grant_list
7293
7293
opt_require_clause opt_resource_options
7294
7294
{
7295
7295
Lex->create_info.set($2);
@@ -8242,7 +8242,7 @@ rename:
8242
8242
}
8243
8243
table_to_table_list
8244
8244
{}
8245
- | RENAME USER clear_privileges rename_list
8245
+ | RENAME USER_SYM clear_privileges rename_list
8246
8246
{
8247
8247
Lex->sql_command = SQLCOM_RENAME_USER;
8248
8248
}
@@ -9654,7 +9654,7 @@ function_call_keyword:
9654
9654
if ($$ == NULL)
9655
9655
MYSQL_YYABORT;
9656
9656
}
9657
- | USER '(' ')'
9657
+ | USER_SYM '(' ')'
9658
9658
{
9659
9659
$$= new (thd->mem_root) Item_func_user(thd);
9660
9660
if ($$ == NULL)
@@ -12189,7 +12189,7 @@ drop:
12189
12189
lex->set_command(SQLCOM_DROP_PROCEDURE, $3);
12190
12190
lex->spname= $4;
12191
12191
}
12192
- | DROP USER opt_if_exists clear_privileges user_list
12192
+ | DROP USER_SYM opt_if_exists clear_privileges user_list
12193
12193
{
12194
12194
Lex->set_command(SQLCOM_DROP_USER, $3);
12195
12195
}
@@ -13039,14 +13039,14 @@ show_param:
13039
13039
lex->sql_command= SQLCOM_SHOW_CREATE_TRIGGER;
13040
13040
lex->spname= $3;
13041
13041
}
13042
- | CREATE USER
13042
+ | CREATE USER_SYM
13043
13043
{
13044
13044
Lex->sql_command= SQLCOM_SHOW_CREATE_USER;
13045
13045
if (!(Lex->grant_user= (LEX_USER*)thd->alloc(sizeof(LEX_USER))))
13046
13046
MYSQL_YYABORT;
13047
13047
Lex->grant_user->user= current_user;
13048
13048
}
13049
- | CREATE USER user
13049
+ | CREATE USER_SYM user
13050
13050
{
13051
13051
Lex->sql_command= SQLCOM_SHOW_CREATE_USER;
13052
13052
Lex->grant_user= $3;
@@ -13492,7 +13492,7 @@ kill_expr:
13492
13492
{
13493
13493
Lex->value_list.push_front($$, thd->mem_root);
13494
13494
}
13495
- | USER user
13495
+ | USER_SYM user
13496
13496
{
13497
13497
Lex->users_list.push_back($2, thd->mem_root);
13498
13498
Lex->kill_type= KILL_TYPE_USER;
@@ -14912,7 +14912,7 @@ keyword_sp:
14912
14912
| UNDOFILE_SYM {}
14913
14913
| UNKNOWN_SYM {}
14914
14914
| UNTIL_SYM {}
14915
- | USER {}
14915
+ | USER_SYM {}
14916
14916
| USE_FRM {}
14917
14917
| VARIABLES {}
14918
14918
| VIEW_SYM {}
@@ -15817,7 +15817,7 @@ object_privilege:
15817
15817
| SHOW VIEW_SYM { Lex->grant |= SHOW_VIEW_ACL; }
15818
15818
| CREATE ROUTINE_SYM { Lex->grant |= CREATE_PROC_ACL; }
15819
15819
| ALTER ROUTINE_SYM { Lex->grant |= ALTER_PROC_ACL; }
15820
- | CREATE USER { Lex->grant |= CREATE_USER_ACL; }
15820
+ | CREATE USER_SYM { Lex->grant |= CREATE_USER_ACL; }
15821
15821
| EVENT_SYM { Lex->grant |= EVENT_ACL;}
15822
15822
| TRIGGER_SYM { Lex->grant |= TRIGGER_ACL; }
15823
15823
| CREATE TABLESPACE { Lex->grant |= CREATE_TABLESPACE_ACL; }
0 commit comments