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
0ed291e6
Commit
0ed291e6
authored
Nov 28, 2016
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup: parser: s/USER/USER_SYM/
parent
0bef3bb8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
+15
-15
sql/lex.h
sql/lex.h
+3
-3
sql/sql_yacc.yy
sql/sql_yacc.yy
+12
-12
No files found.
sql/lex.h
View file @
0ed291e6
...
...
@@ -646,7 +646,7 @@ static SYMBOL symbols[] = {
{
"UPGRADE"
,
SYM
(
UPGRADE_SYM
)},
{
"USAGE"
,
SYM
(
USAGE
)},
{
"USE"
,
SYM
(
USE_SYM
)},
{
"USER"
,
SYM
(
USER
)},
{
"USER"
,
SYM
(
USER
_SYM
)},
{
"USER_RESOURCES"
,
SYM
(
RESOURCES
)},
{
"USE_FRM"
,
SYM
(
USE_FRM
)},
{
"USING"
,
SYM
(
USING
)},
...
...
@@ -714,7 +714,7 @@ static SYMBOL sql_functions[] = {
{
"PERCENT_RANK"
,
SYM
(
PERCENT_RANK_SYM
)},
{
"RANK"
,
SYM
(
RANK_SYM
)},
{
"ROW_NUMBER"
,
SYM
(
ROW_NUMBER_SYM
)},
{
"SESSION_USER"
,
SYM
(
USER
)},
{
"SESSION_USER"
,
SYM
(
USER
_SYM
)},
{
"STD"
,
SYM
(
STD_SYM
)},
{
"STDDEV"
,
SYM
(
STD_SYM
)},
{
"STDDEV_POP"
,
SYM
(
STD_SYM
)},
...
...
@@ -724,7 +724,7 @@ static SYMBOL sql_functions[] = {
{
"SUBSTRING"
,
SYM
(
SUBSTRING
)},
{
"SUM"
,
SYM
(
SUM_SYM
)},
{
"SYSDATE"
,
SYM
(
SYSDATE
)},
{
"SYSTEM_USER"
,
SYM
(
USER
)},
{
"SYSTEM_USER"
,
SYM
(
USER
_SYM
)},
{
"TRIM"
,
SYM
(
TRIM
)},
{
"VARIANCE"
,
SYM
(
VARIANCE_SYM
)},
{
"VAR_POP"
,
SYM
(
VARIANCE_SYM
)},
...
...
sql/sql_yacc.yy
View file @
0ed291e6
...
...
@@ -1683,7 +1683,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b, ulong *yystacksize);
%token UPDATE_SYM /* SQL-2003-R */
%token UPGRADE_SYM
%token USAGE /* SQL-2003-N */
%token USER
/* SQL-2003-R */
%token USER
_SYM
/* SQL-2003-R */
%token USE_FRM
%token USE_SYM
%token USING /* SQL-2003-R */
...
...
@@ -2632,7 +2632,7 @@ create:
Lex->create_view_suid= TRUE;
}
view_or_trigger_or_sp_or_event { }
| create_or_replace USER opt_if_not_exists clear_privileges grant_list
| create_or_replace USER
_SYM
opt_if_not_exists clear_privileges grant_list
opt_require_clause opt_resource_options
{
if (Lex->set_command_with_check(SQLCOM_CREATE_USER, $1 | $3))
...
...
@@ -2675,7 +2675,7 @@ server_options_list:
;
server_option:
USER TEXT_STRING_sys
USER
_SYM
TEXT_STRING_sys
{
MYSQL_YYABORT_UNLESS(Lex->server_options.username.str == 0);
Lex->server_options.username= $2;
...
...
@@ -7289,7 +7289,7 @@ alter:
lex->server_options.reset($3);
} OPTIONS_SYM '(' server_options_list ')' { }
/* ALTER USER foo is allowed for MySQL compatibility. */
| ALTER opt_if_exists USER clear_privileges grant_list
| ALTER opt_if_exists USER
_SYM
clear_privileges grant_list
opt_require_clause opt_resource_options
{
Lex->create_info.set($2);
...
...
@@ -8242,7 +8242,7 @@ rename:
}
table_to_table_list
{}
| RENAME USER clear_privileges rename_list
| RENAME USER
_SYM
clear_privileges rename_list
{
Lex->sql_command = SQLCOM_RENAME_USER;
}
...
...
@@ -9654,7 +9654,7 @@ function_call_keyword:
if ($$ == NULL)
MYSQL_YYABORT;
}
| USER '(' ')'
| USER
_SYM
'(' ')'
{
$$= new (thd->mem_root) Item_func_user(thd);
if ($$ == NULL)
...
...
@@ -12189,7 +12189,7 @@ drop:
lex->set_command(SQLCOM_DROP_PROCEDURE, $3);
lex->spname= $4;
}
| DROP USER opt_if_exists clear_privileges user_list
| DROP USER
_SYM
opt_if_exists clear_privileges user_list
{
Lex->set_command(SQLCOM_DROP_USER, $3);
}
...
...
@@ -13039,14 +13039,14 @@ show_param:
lex->sql_command= SQLCOM_SHOW_CREATE_TRIGGER;
lex->spname= $3;
}
| CREATE USER
| CREATE USER
_SYM
{
Lex->sql_command= SQLCOM_SHOW_CREATE_USER;
if (!(Lex->grant_user= (LEX_USER*)thd->alloc(sizeof(LEX_USER))))
MYSQL_YYABORT;
Lex->grant_user->user= current_user;
}
| CREATE USER user
| CREATE USER
_SYM
user
{
Lex->sql_command= SQLCOM_SHOW_CREATE_USER;
Lex->grant_user= $3;
...
...
@@ -13492,7 +13492,7 @@ kill_expr:
{
Lex->value_list.push_front($$, thd->mem_root);
}
| USER user
| USER
_SYM
user
{
Lex->users_list.push_back($2, thd->mem_root);
Lex->kill_type= KILL_TYPE_USER;
...
...
@@ -14912,7 +14912,7 @@ keyword_sp:
| UNDOFILE_SYM {}
| UNKNOWN_SYM {}
| UNTIL_SYM {}
| USER
{}
| USER
_SYM
{}
| USE_FRM {}
| VARIABLES {}
| VIEW_SYM {}
...
...
@@ -15817,7 +15817,7 @@ object_privilege:
| SHOW VIEW_SYM { Lex->grant |= SHOW_VIEW_ACL; }
| CREATE ROUTINE_SYM { Lex->grant |= CREATE_PROC_ACL; }
| ALTER ROUTINE_SYM { Lex->grant |= ALTER_PROC_ACL; }
| CREATE USER
{ Lex->grant |= CREATE_USER_ACL; }
| CREATE USER
_SYM
{ Lex->grant |= CREATE_USER_ACL; }
| EVENT_SYM { Lex->grant |= EVENT_ACL;}
| TRIGGER_SYM { Lex->grant |= TRIGGER_ACL; }
| CREATE TABLESPACE { Lex->grant |= CREATE_TABLESPACE_ACL; }
...
...
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