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

    https://github.com/apache/incubator-trafodion/pull/347#discussion_r54446568
  
    --- Diff: core/sql/optimizer/BindRI.cpp ---
    @@ -408,6 +408,39 @@ void 
RefConstraint::getMatchOptionPredicateText(NAString &text,
       text += ")";
     }
     
    +//helper function to check if the given column name is reserved hidden 
coloum
    +static NABoolean isHiddenColumn(const char *colname)
    +{
    +  int len = strlen(colname);
    +  if(strcmp(colname , "_SALT_") ==0) 
    +    return TRUE;
    +  //check for DIVISION column
    +  //pattern _DIVISION_%d_
    +  //must longer than 12
    +  if(len >= 12) {
    +    //must end with _
    +    if(colname[len] == '_')
    --- End diff --
    
    colname[len] will always be '\0' since len is the strlen of colname. I 
think you meant, colname[len-1] here.


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to