Github user DaveBirdsall commented on a diff in the pull request:
https://github.com/apache/trafodion/pull/1536#discussion_r183798490
--- Diff: core/sql/sqlcomp/PrivMgrComponentPrivileges.cpp ---
@@ -840,11 +840,12 @@ PrivStatus PrivMgrComponentPrivileges::grantPrivilege(
// more items in the list fail and in cases of "ALL".
if (!componentOperations.nameExists(componentUID,operationName))
{
- *pDiags_ << DgSqlCode(-CAT_TABLE_DOES_NOT_EXIST_ERROR)
- << DgTableName(operationName.c_str());
+ *pDiags_ << DgSqlCode(-CAT_INVALID_COMPONENT_PRIVILEGE)
--- End diff --
Looks like we were using the wrong error message before? Thanks for fixing
this.
---