Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbUpdatePadChar

Update the table pad and delimiter character resource.

Declaration

CTDBRET ctdbUpdatePadChar(CTHANDLE Handle, NINT padchar, NINT dmlchar,

CTBOOL rebuild)

Description

ctdbUpdatePadChar() updates the table pad and delimiter character resource. The table must be opened exclusive to allow update of the resource.

  • Handle [in] the Table Handle.
  • padchar [in] the pad character
  • dmlchar [in] the field delimiter character.
  • rebuild [in] indicate if the table should be rebuilt. If rebuild is set to YES, every record is read and the fixed string fields (CT_FSTRING) are padded according to new padding strategy. Notice that this feature is not implemented yet, and no rebuild is done.

Returns

ctdbUpdatePadChar() returns CTDBRET_OK on success, or c-treeDB API C API error code on failure.

See also

ctdbSetPadChar(), ctdbGetPadChar()

TOCIndex