Skip to content
This repository has been archived by the owner on Jun 7, 2021. It is now read-only.

[TRAFODION-1758]: A user has dbroot role can't grant component privilege #765

Merged
merged 1 commit into from
Oct 18, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 0 additions & 11 deletions core/sql/parser/sqlparser.y
Expand Up @@ -27691,13 +27691,6 @@ revoke_role_statement : TOK_REVOKE optional_with_admin_option
optional_drop_behavior
optional_granted_by
{
// revoke_role_statement ::= TOK_REVOKE optional_with_admin_option TOK_ROLE authorization_identifier_list TOK_FROM grantee_list optional_granted_by

//if ($2 /* optional_with_admin_option */ == TRUE)
//{
// YYERROR;
//}

$$ = new (PARSERHEAP())
StmtDDLRoleGrant(
$4 , /* authorization_identifier_list - role list */
Expand Down Expand Up @@ -27855,10 +27848,6 @@ grant_role_statement : TOK_GRANT TOK_ROLE authorization_identifier_list TOK_TO g
optional_with_admin_option
optional_granted_by
{
//if($6 /* optional_with_admin_option */ == TRUE) // "with admin option" specified
//{
// YYERROR;
//}
$$ = new (PARSERHEAP())
StmtDDLRoleGrant(
$3 , /*role list*/
Expand Down