You are viewing a plain text version of this content. The canonical link for it is here.
Posted to codereview@trafodion.apache.org by robertamarton <gi...@git.apache.org> on 2016/03/01 16:42:16 UTC

[GitHub] incubator-trafodion pull request: TRAFODION-1856: Revoke - object ...

Github user robertamarton commented on a diff in the pull request:

    https://github.com/apache/incubator-trafodion/pull/349#discussion_r54584974
  
    --- Diff: core/sql/sqlcomp/CmpSeabaseDDLtable.cpp ---
    @@ -6309,6 +6304,23 @@ void CmpSeabaseDDL::alterSeabaseTableAddRIConstraint(
               
               return;
             }
    +
    +       // If the user/role does not have REFERENCES privilege at the object 
    +       // level, check to see if the user/role has been granted the privilege 
    +       // on all affected columns
    +       if (noObjPriv)
    +         {
    +           PrivMgrUserPrivs* privs = refdNaTable->getPrivInfo();
    +           if (!privs->hasColReferencePriv(refdNAC->getPosition()))
    +             {
    +                *CmpCommon::diags() << DgSqlCode(-4481)
    --- End diff --
    
    No, there are no enums for this range that I could find.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---