[][src]Function odbc::ffi::SQLGetDiagFieldW

pub unsafe extern "system" fn SQLGetDiagFieldW(
    handle_type: HandleType,
    handle: *mut Obj,
    record_rumber: i16,
    diag_identifier: i16,
    diag_info_ptr: *mut c_void,
    buffer_length: i16,
    string_length_ptr: *mut i16
) -> 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.