You are viewing a plain text version of this content. The canonical link for it is here.
Posted to codereview@trafodion.apache.org by DaveBirdsall <gi...@git.apache.org> on 2015/09/20 22:46:11 UTC

[GitHub] incubator-trafodion pull request: [TRAFODION-1492] Allow specifica...

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

    https://github.com/apache/incubator-trafodion/pull/88#discussion_r39934296
  
    --- Diff: core/sql/udrserv/UdrCfgParser.cpp ---
    @@ -44,22 +44,15 @@ NABoolean UdrCfgParser::cfgFileIsOpen(NAString &errorText)
     
        NABoolean envFound = FALSE;
     
    -   if(cfgFileName = getenv("MXUDRCFG"))
    +   if(cfgFileName = getenv("TRAFUDRCFG"))
        {
           envFound = TRUE;
    -      UDR_DEBUG1("UdrCfgParser(): MXUDRCFG cfgFileName is %s", cfgFileName);
    +      UDR_DEBUG1("UdrCfgParser(): TRAFUDRCFG cfgFileName is %s", cfgFileName);
        }
        else
        {
    -     NAString s("c:/tdm_sql/udr/mxudrcfg");
    -     char installdir[1024];
    -     Lng32 resultlength = 0;
    -     Int32 res = ComRtGetInstallDir(installdir, 1024, &resultlength);
    -     if (res == 0)
    -     {
    -       s = installdir;
    -       s += "/mxudrcfg";
    -     }
    +     NAString s(getenv("MY_SQROOT"));
    --- End diff --
    
    What does NAString ctor do if passed a null pointer? (That is, what happens if $MY_SQROOT is not defined? Unlikely, I know.)


---
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.
---