SYNOPSIS

int MGOupdsponsor (Validation *val)

DESCRIPTION

The MGOupdsponsor() function updates an existing sponsor record. Information is passed through val. The required fields are:

val.validid is the validation id. val.sponsid is the sponsor's validation id. val.source_code is the sponsor validation source reference code. val.status_code is the validation status reference code. You can only change the status_code field. To change the other fields, you must insert a new record.

RETURN VALUE

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

ERRORS

AUTHENTICATION LEVEL

wmango

SEE ALSO

MGOdelsponsor(), MGOinssponsor(), MGOselsponsor(), MGOselrvalsource(), MGOselrvalstatus(), MGOzero()