diff options
author | Sergei Golubchik <sergii@pisem.net> | 2013-11-02 16:26:35 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2013-11-02 16:26:35 +0100 |
commit | 320b85286bd5ebb41d59ff526b74277661906fdd (patch) | |
tree | b3d12dcd385b82dbcadf6af56d4e15278d46895e /sql/sql_yacc.yy | |
parent | 1f0368658b8992c88e2f6304de80f11be097ba1a (diff) | |
download | mariadb-git-320b85286bd5ebb41d59ff526b74277661906fdd.tar.gz |
grant/revoke ... to/from current_role
Diffstat (limited to 'sql/sql_yacc.yy')
-rw-r--r-- | sql/sql_yacc.yy | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy index f0d68c453be..19d8d1854a1 100644 --- a/sql/sql_yacc.yy +++ b/sql/sql_yacc.yy @@ -14356,9 +14356,11 @@ role_list: current_role: CURRENT_ROLE optional_braces { - if (!($$=(LEX_USER*) thd->alloc(sizeof(LEX_USER)))) + if (!($$=(LEX_USER*) thd->calloc(sizeof(LEX_USER)))) MYSQL_YYABORT; $$->user= current_role; + $$->plugin= empty_lex_str; + $$->auth= empty_lex_str; } ; |