cursor/changeAdultIdentity.c
static RDM_RETCODE changeAdultIdentity (
RDM_CURSOR adult,
const ADULT *newIdentity)
{
RDM_RETCODE rc;
RDM_CURSOR_STATUS status{};
{
printf (
"Changed identity to %d, %s\n", newIdentity->adult_id,
newIdentity->adult_name);
}
if (rc == sOKAY)
{
rc = rdm_cursorGetStatus (adult, &status);
}
/* How the following behaves depend on the cursor that is passed in */
{
printf ("The key value for the cursor used to change"
" the identity have changed\n");
}
return rc;
}
RDM_RETCODE rdm_cursorGetStatus(RDM_CURSOR cursor, RDM_CURSOR_STATUS *position)
Check a cursor for special conditions.
RDM_CURSOR_STATUS
Enumeration for RaimaDB cursor positions / statuses.
Definition: rdmtypes.h:220
RDM_RETCODE rdm_cursorUpdateRow(RDM_CURSOR cursor, const void *colValues, size_t bytesIn)
Update all columns in a row.