Skip to content

Commit

Permalink
Correctly deparse REVOKE ... CASCADE
Browse files Browse the repository at this point in the history
  • Loading branch information
msepga committed Dec 13, 2023
1 parent 3261c7c commit 8780869
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/postgres_deparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -8023,6 +8023,10 @@ static void deparseGrantRoleStmt(StringInfo str, GrantRoleStmt *grant_role_stmt)
deparseRoleSpec(str, castNode(RoleSpec, grant_role_stmt->grantor));
}

if (grant_role_stmt->behavior == DROP_CASCADE) {
appendStringInfoString(str, "CASCADE ");
}

removeTrailingSpace(str);
}

Expand Down

0 comments on commit 8780869

Please sign in to comment.