Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
HAWQ-1356. Add waring when user does not have usage privilege of name…
Browse files Browse the repository at this point in the history
…space.

Signed-off-by: Chuling Wang <[email protected]>
  • Loading branch information
zhangh43 authored and wcl14 committed Feb 24, 2017
1 parent 21d78d3 commit 52d5b55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/catalog/namespace.c
Original file line number Diff line number Diff line change
Expand Up @@ -1939,7 +1939,7 @@ static void checkNamespaceInternal(List **oidlist, Oid namespaceId, Oid roleid)
*oidlist = lappend_oid(*oidlist, namespaceId);
}
else {
if (OidIsValid(namespaceId)) {
if (OidIsValid(namespaceId) && aclType == HAWQ_ACL_RANGER) {
elog(WARNING, "usage privilege of namespace %s is required.",
getNamespaceNameByOid(namespaceId));
}
Expand Down

0 comments on commit 52d5b55

Please sign in to comment.