summaryrefslogtreecommitdiff
path: root/sql/sql_yacc.yy
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2013-10-28 07:46:17 +0100
committerSergei Golubchik <sergii@pisem.net>2013-10-28 07:46:17 +0100
commitfef416699009b78366d9eec937c01822b531f518 (patch)
tree421a09a52cfb608a8a5cffa1b62a49ca51a92fa2 /sql/sql_yacc.yy
parentd5c9712225b08be9efa19fddd82aed9d7e21938a (diff)
downloadmariadb-git-fef416699009b78366d9eec937c01822b531f518.tar.gz
Don't allow authentication clauses for roles, in particular:
GRANT ... IDENTIFIED BY [ PASSWORD ] ... GRANT ... IDENTIFIED VIA ... [ USING ... ] GRANT ... REQUIRE ... GRANT ... MAX_xxx ... SET PASSWORD FOR ... = ...
Diffstat (limited to 'sql/sql_yacc.yy')
-rw-r--r--sql/sql_yacc.yy2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy
index 38b6d990aa5..f0d68c453be 100644
--- a/sql/sql_yacc.yy
+++ b/sql/sql_yacc.yy
@@ -13222,6 +13222,8 @@ user:
if (!($$=(LEX_USER*)thd->calloc(sizeof(LEX_USER))))
MYSQL_YYABORT;
$$->user= current_user;
+ $$->plugin= empty_lex_str;
+ $$->auth= empty_lex_str;
}
;