Skip to content

Commit

Permalink
Fix revoke grant option for
Browse files Browse the repository at this point in the history
  • Loading branch information
Ordinant authored and electrum committed Mar 4, 2022
1 parent 92b458c commit 88a1be8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/src/main/sphinx/sql/revoke.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ Specifying ``ALL PRIVILEGES`` revokes :doc:`delete`, :doc:`insert` and :doc:`sel

Specifying ``ROLE PUBLIC`` revokes privileges from the ``PUBLIC`` role. Users will retain privileges assigned to them directly or via other roles.

The optional ``GRANT OPTION FOR`` clause also revokes the privileges to grant the specified privileges.
If the optional ``GRANT OPTION FOR`` clause is specified, only the ``GRANT OPTION``
is removed. Otherwise, both the ``GRANT`` and ``GRANT OPTION`` are revoked.

For ``REVOKE`` statement to succeed, the user executing it should possess the specified privileges as well as the ``GRANT OPTION`` for those privileges.

Expand Down

0 comments on commit 88a1be8

Please sign in to comment.