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? 


---

Reply via email to