SYNOPSIS

int MGOinsrsubattrval (Subscription *sub)

DESCRIPTION

The MGOinsrsubattrval() function inserts a new 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.

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

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