cursor/cancelClubMembership.c
static RDM_RETCODE cancelClubMembership (RDM_CURSOR adult)
{
rc = rdm_cursorUnlinkRow (adult, REF_MEMBERS);
if (rc == sOKAY)
{
printf ("Canceled club membership\n");
}
else if (rc == eNOTLINKED)
{
printf ("Is not a member\n");
rc = sOKAY;
}
return rc;
}
static RDM_RETCODE cancelJuniorClubMembership (RDM_CURSOR child)
{
rc = rdm_cursorUnlinkRow (child, REF_JUNIOR_MEMBERS);
if (rc == sOKAY)
{
printf ("Canceled club membership\n");
}
else if (rc == eNOTLINKED)
{
printf ("Is not a member\n");
rc = sOKAY;
}
return rc;
}
@ eNOTLINKED
Definition: rdmretcodetypes.h:261
struct RDM_CURSOR_S * RDM_CURSOR
Definition: rdmtypes.h:347
@ sOKAY
Definition: rdmretcodetypes.h:100
enum RDM_RETCODE_E RDM_RETCODE
RaimaDB status and error return codes.
RDM_RETCODE rdm_cursorUnlinkRow(RDM_CURSOR cursor, RDM_REF_ID refId)
Unlink a row from its owner.