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

    https://github.com/apache/trafodion/pull/1721#discussion_r225014968
  
    --- Diff: core/sql/sqlcomp/CmpSeabaseDDLroutine.cpp ---
    @@ -697,6 +1229,26 @@ void  
CmpSeabaseDDL::alterSeabaseLibrary(StmtDDLAlterLibrary  *alterLibraryNode,
       return;
     }
     
    +short CmpSeabaseDDL::extractLibrary(ExeCliInterface *cliInterface,  char 
*libHandle, char *cachedLibName)
    +{
    +  struct stat statbuf;
    +  Int64 libUID = 0;
    +  short retcode = 0;
    +      if (stat(cachedLibName, &statbuf) != 0)
    +        {
    +          retcode =  ExExeUtilLobExtractLibrary(cliInterface, libHandle, 
cachedLibName, 
    +                                                CmpCommon::diags());
    +          if (retcode < 0)
    +            {
    +              *CmpCommon::diags() <<  DgSqlCode(-4316)
    +                                  << DgString0(cachedLibName);
    --- End diff --
    
    Again, if we could return why unable to extract the library - useful for 
debugging issues.


---

Reply via email to