Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic



NINT ctdbDECL ctdbGetErrorIndex(CTHANDLE Handle);


Retrieves the index number that cause a record insert or record update operation to fail. This function should only be called after a ctdbWriteRecord() call fails. The error index number value is maintained until the next call to ctdbWriteRecord().

  • Handle must be a record handle

Return Values

A number from 0 to n to indicate which index caused the error. A value of 0 represents the first index, 1 represents the second index, and so on. If the index number can not be obtained, ctdbGetErrorIndex() returns -1.

See Also