SYNOPSIS

int MGOupdrsubattrval (Subscription *sub)

DESCRIPTION

The MGOupdrsubattrval() function updates an existing subscription attribute record. Information is passed through sub. The required fields are:

sub.subscription-code is the subscription reference code. sub.attribute_code is the subscription attribute reference code. sub.attribute_data is the subscription attribute data. You can only change the attribute_data 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

MGOdelrsubattrval(), MGOinsrsubattrval(), MGOselrsubattr(), MGOselrsubattrval(), MGOselrsubscription(), MGOzero()