ctdbSetFieldProperties
Set field properties such as name, type and length.
Declaration
CTDBRET ctdbSetFieldProperties(CTHANDLE Handle, pTEXT FieldName,
CTDBTYPE Type, VRLEN Length)
Description
ctdbSetFieldProperties() sets field properties such as name, type, and length from the table definition. Use ctdbGetFieldProperties() to retrieve the field properties.
Length [in] the field length. The maximum length of CHAR, VARCHAR, BINARY, and VARBINARY fields (64K bytes max). The maximum length of LVARCHAR, LVARBINARY fields (2GB max, or set to 0 for "2GB"). This parameter is ignored for all other field types (the non-array-like types).
Returns
ctdbSetFieldProperties() returns CTDBRET_OK on success, or a FairCom DB API C API error code on failure.
See also
ctdbAllocTable(), ctdbGetFieldProperties()