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

    https://github.com/apache/incubator-trafodion/pull/642#discussion_r73779661
  
    --- Diff: core/sql/common/CharType.cpp ---
    @@ -1217,7 +1217,7 @@ void CharType::minMaxRepresentableValue(void* bufPtr,
       if (stringLiteral)
         {
           NABoolean isNull = FALSE;
    -      NABoolean res = createSQLLiteral((const char *) bufPtr, 
*stringLiteral, isNull, h);
    +      NABoolean res = createSQLLiteral((const char *) bufPtr  - 
getSQLnullHdrSize(), *stringLiteral, isNull, h);
    --- End diff --
    
    I still think move back the pointer will be the best approach here. I will 
add a comment to explicitly say the starting pos of the input bufPtr point to 
the position after the null header. And since the createSQLLiteral need the 
input buf starting address to be before null header, we need to move back. 
Otherwise, we have too much places to modify. What do you think?


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to