Product Documentation

FairCom DB API for C

Previous Topic

Next Topic

ctdbIsFieldDefaultValueSet

Checks if a field default value has been set or not.

DECLARATION

TYPE FunctionTemplate(parameters) TYPE parameters;

DESCRIPTION

Checks if a field default value has been set or not. Returns YES if a field default value was set, otherwise returns NO.

RETURN

Value

Symbolic Constant

Explanation

0

NO

Batch operation not underway.

1

YES

Batch operation underway.

See Appendix A for a complete listing of valid c-tree Plus error values.

EXAMPLE

/* check if default field value is set */

hField = ctdbGetField(hTable, 5);

if (ctdbIsFieldDefaultValueSet(hField))

printf("Default field value is set\n");

else

printf("No default field value\n");

SEE ALSO

ctdbSetFieldDefaultValue(), ctdbGetFieldDefaultValue(), ctdbClearFieldDefaultValue(), ctdbClearAllFieldDefaultValue(), ctdbSetFieldDefaultDateTimeType(), ctdbGetFieldDefaultDateType(), ctdbGetFieldDefaultTimeType()

TOCIndex