Uploaded image for project: 'Apache Trafodion (Retired)'
  1. Apache Trafodion (Retired)
  2. TRAFODION-2375

SQLGetDiagRec API didn't return correct text length

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.2.0
    • None
    • client-odbc-windows
    • None
    • Distro Version: HDP2.4, Trafodion Version: R22, OS: Win10

    Description

      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;

      Attachments

        Issue Links

          Activity

            People

              zhangxiang Zhang,Xiang
              sujinpei 苏锦佩
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: