Product Documentation

FairCom DB API for C

Previous Topic

Next Topic

ctdbGetError

Return the last error logged by any function in the FairCom DB API C API.

Declaration

CTDBRET ctdbGetError(CTHANDLE Handle)

Description

ctdbGetError() returns the last error logged by any function in the FairCom DB API C API that was called from the specified session. This function should only be called to check for errors if a FairCom DB API C API function fails. In this situation, it does return the last error condition.

  • Handle should be any Handle inside the Session (session handle, database handle, table handle, record handle, index handle, field handle or segment handle).

Returns

ctdbGetError() returns the last error logged by any function in the FairCom DB API, or NULL on failure.

See also

ctdbAllocSession(), ctdbAllocDatabase(), ctdbAllocTable(), ctdbAllocRecord(), ctdbAllocField(), ctdbAllocIndex(), ctdbAllocSegment(), ctdbClearError(), ctdbSetError()

TOCIndex