SYNOPSIS

int MGOinsextcategory (Validation *cat)

DESCRIPTION

The MGOinsextcategory() function inserts a new extended category record. Information is passed through cat. The required fields are:

cat.validid is the validation id. cat.source_code is the validation source reference code. This may be specified as "0" for a source-less binding. cat.category_code is the category reference code. cat.status_code is the validation status reference code. cat.expiration is the expiration date of the extended category.

RETURN VALUE

Returns the number of records inserted upon success or -1 if an error occurred (in which case MGOerrno and MGOerrmsg are set appropriately).

ERRORS

AUTHENTICATION LEVEL

wmango

SEE ALSO

MGOdelextcategory(), MGOselextcategory(), MGOselrcategory(), MGOselrvalsource(), MGOselrvalstatus(), MGOzero()