Create a gist now

Instantly share code, notes, and snippets.

@krk /gram.fragment.y Secret
Created Jun 27, 2017

What would you like to do?
GrantStmt: GRANT privileges ON privilege_target TO grantee_list
opt_grant_grant_option
{
GrantStmt *n = makeNode(GrantStmt);
n->is_grant = true;
n->privileges = $2;
n->targtype = ($4)->targtype;
n->objtype = ($4)->objtype;
n->objects = ($4)->objs;
n->grantees = $6;
n->grant_option = $7;
$$ = (Node*)n;
}
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment