苏锦佩 created TRAFODION-2375:
------------------------------

             Summary: SQLGetDiagRec API didn't return correct text length
                 Key: TRAFODION-2375
                 URL: https://issues.apache.org/jira/browse/TRAFODION-2375
             Project: Apache Trafodion
          Issue Type: Bug
          Components: client-odbc-windows
    Affects Versions: 2.2-incubating
         Environment: Distro Version: HDP2.4, Trafodion Version: R22, OS: Win10
            Reporter: 苏锦佩


SQLRETURN SQLGetDiagRec(
     SQLSMALLINT HandleType,
     SQLHANDLE Handle,
     SQLSMALLINT RecNumber,
     SQLCHAR * SQLState,
     SQLINTEGER * NativeErrorPtr,
     SQLCHAR * MessageText,
     SQLSMALLINT BufferLength,
     SQLSMALLINT * TextLengthPtr);
Acoording to API reference, TextLengthPtr should return total number of 
characters available, but it return number of truncated characters when 
BufferLength is not enough to receive all MessageText; 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to