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

    https://github.com/apache/incubator-trafodion/pull/430#discussion_r59959894
  
    --- Diff: core/conn/jdbc_type2/native/SqlInterface.cpp ---
    @@ -246,10 +246,14 @@ SQLRETURN GetJDBCValues( SQLItemDesc_def *SQLItemDesc,
                SQLItemDesc->signType      = TRUE;
                break;
        case SQLTYPECODE_DATETIME:
    +           // Calculate the length based on YYYY/MM/DD HH:MM:SS.ffffff
    +        SQLItemDesc->maxLen = 20 + 6;
    --- End diff --
    
    The issue is not about getMemoryAllocInfo here. Since the maxLen is hard 
code to 26, so the length of the memory is always enough. 
    
    When use MT-DCS, the maxLen will be passed to driver side. ODBC driver will 
check if the maxLen is equal to the real length of the value, for example , the 
maxLen of DATE should be 10. 
     


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