int MGOjoinvalidation (Validation *val1, Validation *val2)
The MGOjoinvalidation() function joins two existing validation records from different (or the same) validation sources. The joined validations will be treated as the same "person" for any subsequent relationships. Information is passed through val1 and val2. The required fields are:
val1.validid is the "from" validation id. val1.source_code is the "from" validation source reference code. val2.validid is the "to" validation id. val2.source_code is the "to" validation source reference code. val1 will be joined to val2.
Note: In the case of same-source joins, the "from" record will replace the "to" record. The "to" record will be dropped from the database.
Returns 1 if the join succeeded or -1 if an error occurred (in which case MGOerrno and MGOerrmsg are set appropriately).
wmango
MGOdelvalidation(), MGOinsvalidation(), MGOselvalidation(), MGOselrvalsource(), MGOunjoinvalidation(), MGOupdvalidation(), MGOzero()