trafodion-codereview mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From EEDY <...@git.apache.org>
Subject [GitHub] incubator-trafodion pull request #1288: New COMMENT-ON SQL statement
Date Mon, 06 Nov 2017 10:14:06 GMT
Github user EEDY commented on a diff in the pull request:

    https://github.com/apache/incubator-trafodion/pull/1288#discussion_r149038713
  
    --- Diff: core/sql/sqlcomp/CmpDescribe.cpp ---
    @@ -3059,6 +3061,36 @@ short CmpDescribeSeabaseTable (
     
           outputLongLine(*space, viewtext, 0);
     
    +      //display comment for VIEW
    +      if (objectUID > 0/* && COMMENT_CQD*/)
    +        {
    +          if (cmpSBD.switchCompiler())
    +            {
    +              *CmpCommon::diags() << DgSqlCode(-CAT_UNABLE_TO_RETRIEVE_PRIVS);
    +              return -1;
    --- End diff --
    
    I add a new error code CAT_UNABLE_TO_RETRIEVE_COMMENTS=1033, is this a good way? 


---

Mime
View raw message