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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
0254c9a4
Commit
0254c9a4
authored
Oct 17, 2013
by
Vicențiu Ciorbaru
Committed by
Sergei Golubchik
Oct 17, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added the SET ROLE command to the grammar
parent
6062e87f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
sql/lex.h
sql/lex.h
+1
-0
sql/sql_yacc.yy
sql/sql_yacc.yy
+10
-0
No files found.
sql/lex.h
View file @
0254c9a4
...
@@ -489,6 +489,7 @@ static SYMBOL symbols[] = {
...
@@ -489,6 +489,7 @@ static SYMBOL symbols[] = {
{
"REVOKE"
,
SYM
(
REVOKE
)},
{
"REVOKE"
,
SYM
(
REVOKE
)},
{
"RIGHT"
,
SYM
(
RIGHT
)},
{
"RIGHT"
,
SYM
(
RIGHT
)},
{
"RLIKE"
,
SYM
(
REGEXP
)},
/* Like in mSQL2 */
{
"RLIKE"
,
SYM
(
REGEXP
)},
/* Like in mSQL2 */
{
"ROLE"
,
SYM
(
ROLE_SYM
)},
{
"ROLLBACK"
,
SYM
(
ROLLBACK_SYM
)},
{
"ROLLBACK"
,
SYM
(
ROLLBACK_SYM
)},
{
"ROLLUP"
,
SYM
(
ROLLUP_SYM
)},
{
"ROLLUP"
,
SYM
(
ROLLUP_SYM
)},
{
"ROUTINE"
,
SYM
(
ROUTINE_SYM
)},
{
"ROUTINE"
,
SYM
(
ROUTINE_SYM
)},
...
...
sql/sql_yacc.yy
View file @
0254c9a4
...
@@ -1260,6 +1260,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b, ulong *yystacksize);
...
@@ -1260,6 +1260,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b, ulong *yystacksize);
%token RETURN_SYM /* SQL-2003-R */
%token RETURN_SYM /* SQL-2003-R */
%token REVOKE /* SQL-2003-R */
%token REVOKE /* SQL-2003-R */
%token RIGHT /* SQL-2003-R */
%token RIGHT /* SQL-2003-R */
%token ROLE_SYM
%token ROLLBACK_SYM /* SQL-2003-R */
%token ROLLBACK_SYM /* SQL-2003-R */
%token ROLLUP_SYM /* SQL-2003-R */
%token ROLLUP_SYM /* SQL-2003-R */
%token ROUTINE_SYM /* SQL-2003-N */
%token ROUTINE_SYM /* SQL-2003-N */
...
@@ -1687,6 +1688,8 @@ END_OF_INPUT
...
@@ -1687,6 +1688,8 @@ END_OF_INPUT
%type <is_not_empty> opt_union_order_or_limit
%type <is_not_empty> opt_union_order_or_limit
%type <NONE> ROLE_SYM
%%
%%
...
@@ -13490,6 +13493,7 @@ keyword_sp:
...
@@ -13490,6 +13493,7 @@ keyword_sp:
| RESOURCES {}
| RESOURCES {}
| RESUME_SYM {}
| RESUME_SYM {}
| RETURNS_SYM {}
| RETURNS_SYM {}
| ROLE_SYM {}
| ROLLUP_SYM {}
| ROLLUP_SYM {}
| ROUTINE_SYM {}
| ROUTINE_SYM {}
| ROWS_SYM {}
| ROWS_SYM {}
...
@@ -13839,6 +13843,12 @@ option_value:
...
@@ -13839,6 +13843,12 @@ option_value:
MYSQL_YYABORT;
MYSQL_YYABORT;
lex->var_list.push_back(var);
lex->var_list.push_back(var);
}
}
| ROLE_SYM ident_or_text
{
LEX *lex = Lex;
set_var_role *var= new set_var_role($2);
lex->var_list.push_back(var);
}
| PASSWORD equal text_or_password
| PASSWORD equal text_or_password
{
{
LEX *lex= thd->lex;
LEX *lex= thd->lex;
...
...
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