pub unsafe extern "system" fn SQLGetDiagRec(
    handletype: i16,
    handle: *mut c_void,
    recnumber: i16,
    sqlstate: *mut u8,
    nativeerror: *mut i32,
    messagetext: *mut u8,
    bufferlength: i16,
    textlength: *mut i16
) -> i16