diff options
author | Vicențiu Ciorbaru <cvicentiu@gmail.com> | 2013-10-18 04:41:06 -0700 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2013-10-18 04:41:06 -0700 |
commit | dcc9fd4c8e510a3fe81341d3622fa5ef02eb0d3d (patch) | |
tree | a803585264a55461c20a0874cd31cdc407757b1d /sql/sql_yacc.yy | |
parent | ec92a4e0ffda326cf797bf5e4b389c73c69d2bda (diff) | |
download | mariadb-git-dcc9fd4c8e510a3fe81341d3622fa5ef02eb0d3d.tar.gz |
Implemented syntax recognition for REVOKE ROLE
Diffstat (limited to 'sql/sql_yacc.yy')
-rw-r--r-- | sql/sql_yacc.yy | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy index 683be0413b9..386ae2815cd 100644 --- a/sql/sql_yacc.yy +++ b/sql/sql_yacc.yy @@ -14271,6 +14271,14 @@ revoke_command: lex->sql_command= SQLCOM_REVOKE; lex->type= TYPE_ENUM_PROXY; } + | grant_role FROM grant_list_with_roles + { + LEX *lex= Lex; + lex->sql_command= SQLCOM_REVOKE_ROLE; + lex->type= 0; + printf("The rolename to be revoked is: %s\n", $1.str); + } + ; grant: |