Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (Français) » UltraLite - C and C++ Programming » API Reference » UltraLite ODBC API reference

 

SQLGetDiagRec function

Returns the current values of multiple fields of a diagnostic status record, for UltraLite ODBC.

Syntax
UL_FN_SPEC SQLRETURN UL_FN_MOD SQLGetDiagRec (
SQLSMALLINT HandleType,
SQLHANDLE Handle,
SQLSMALLINT RecNumber,
SQLTCHAR * Sqlstate,
SQLINTEGER * NativeError,
SQLTCHAR * MessageText,
SQLSMALLINT BufferLength,
SQLSMALLINT * TextLength );
Parameters
  • HandleType   The type of handle to be allocated. UltraLite supports the following handle types:

    • SQL_HANDLE_ENV
    • SQL_HANDLE_DBC
    • SQL_HANDLE_STMT

  • Handle   The input handle

  • RecNumber   The output handle.

  • Sqlstate   The ANSI/ISO SQLSTATE value of the error. For a listing, see Messages d'erreur SQL Anywhere triés par code SQLSTATE.

  • NativeError   The SQLCODE value of the error. For a listing, see Messages d'erreur SQL Anywhere triés par code SQLCODE.

  • MessageText   The text of the error or status message.

  • BufferLength   The length of the *MessageText buffer in bytes.

  • TextLength   A pointer to a buffer in which to return the total number of bytes (excluding the null-termination byte) available to return in *MessageText.