char *Argv[16];
-static int ingres_errno = 0;
+int ingres_errno = 0;
extern char *whoami;
extern FILE *journal;
/* open the database */
## ingres sms
+## set lockmode session where readlock = exclusive
return ingres_errno;
}
if (q == (struct query *)0) return(SMS_NO_HANDLE);
v = q->validate;
+ ingres_errno = 0;
if (q->type != RETRIEVE)
## begin transaction
fflush(journal);
}
} else {
-## abort /* it never happened */
+ if (status != SMS_DEADLOCK) {
+## abort /* it never happened */
+ }
}
}
int child;
struct save_queue *sq_create();
+ if (!strcmp(strtrim(list_type), strtrim(member_type)) &&
+ list_id == member_id)
+ return(1);
+
/* see if client is a direct member of list */
## repeat retrieve (exists = any(m.#member_id where
## m.#list_id = @list_id and
if (LOG_RES)
com_err(whoami, 0, "setting ID %s to %d", name, value);
## repeat replace v (#value = @value) where v.#name = @name
+ if (ingres_errno != 0) return(ingres_errno);
return(SMS_SUCCESS);
##}