[][src]Function odbc_sys::SQLGetDiagFieldW

pub unsafe extern "system" fn SQLGetDiagFieldW(
    handle_type: HandleType,
    handle: SQLHANDLE,
    record_rumber: SQLSMALLINT,
    diag_identifier: SQLSMALLINT,
    diag_info_ptr: SQLPOINTER,
    buffer_length: SQLSMALLINT,
    string_length_ptr: *mut SQLSMALLINT
) -> SQLRETURN

Returns the current value of a field of a record of the diagnostic data structure (associated with a specified handle) that contains error, warning, and status information.

Note: diag_identifier is either SqlHeaderDiagnosticIdentifier or SqlDynamicDiagnosticIdentifier

Returns

SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_ERROR, SQL_INVALID_HANDLE, or SQL_NO_DATA.