8000 Make has_sequence_privilege support WITH GRANT OPTION · koderP/postgres@9e051b6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9e051b6

Browse files
committed
Make has_sequence_privilege support WITH GRANT OPTION
The various has_*_privilege() functions all support an optional WITH GRANT OPTION added to the supported privilege types to test whether the privilege is held with grant option. That is, all except has_sequence_privilege() variations. Fix that. Back-patch to all supported branches. Discussion: https://postgr.es/m/005147f6-8280-42e9-5a03-dd2c1e4397ef@joeconway.com
1 parent 7b0cb5e commit 9e051b6

File tree

1 file changed

+3
-0
lines changed
  • src/backend/utils/adt

1 file changed

+3
-0
lines changed

src/backend/utils/adt/acl.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2227,8 +2227,11 @@ convert_sequence_priv_string(text *priv_type_text)
22272227
{
22282228
static const priv_map sequence_priv_map[] = {
22292229
{"USAGE", ACL_USAGE},
2230+
{"USAGE WITH GRANT OPTION", ACL_GRANT_OPTION_FOR(ACL_USAGE)},
22302231
{"SELECT", ACL_SELECT},
2232+
{"SELECT WITH GRANT OPTION", ACL_GRANT_OPTION_FOR(ACL_SELECT)},
22312233
{"UPDATE", ACL_UPDATE},
2234+
{"UPDATE WITH GRANT OPTION", ACL_GRANT_OPTION_FOR(ACL_UPDATE)},
22322235
{NULL, 0}
22332236
};
22342237

0 commit comments

Comments
 (0)
0