SQLGetDiagRec 和 MSDN

SQLGetDiagRec and MSDN

the MSDN-page for SQLGetDiagRec() 我看到以下内容:

SQL_SUCCESS_WITH_INFO: The *MessageText buffer was too small to hold the requested diagnostic message. No diagnostic records were generated. To determine that a truncation occurred, the application must compare BufferLength to the actual number of bytes available, which is written to *StringLengthPtr.

问题是那是唯一提到的 StringLengthPtr

哪一个是正确的,我们如何修复文档?

嗯,看一下各个参数的描述,唯一符合要求的是TextLengthPtr。这实际上有一个非常相似的名字。

我提交了更正建议,我们将看看他们何时(以及是否)解决这个问题。