summaryrefslogtreecommitdiff
path: root/sql/sql_yacc.yy
diff options
context:
space:
mode:
authorVicențiu Ciorbaru <cvicentiu@gmail.com>2013-10-18 04:41:06 -0700
committerSergei Golubchik <sergii@pisem.net>2013-10-18 04:41:06 -0700
commitdcc9fd4c8e510a3fe81341d3622fa5ef02eb0d3d (patch)
treea803585264a55461c20a0874cd31cdc407757b1d /sql/sql_yacc.yy
parentec92a4e0ffda326cf797bf5e4b389c73c69d2bda (diff)
downloadmariadb-git-dcc9fd4c8e510a3fe81341d3622fa5ef02eb0d3d.tar.gz
Implemented syntax recognition for REVOKE ROLE
Diffstat (limited to 'sql/sql_yacc.yy')
-rw-r--r--sql/sql_yacc.yy8
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: