#define INGRES_BAD_INT 4111
#define INGRES_BAD_DATE 4302
+#define INGRES_DEADLOCK 4700
/*
* ingerr: (supposedly) called when Ingres indicates an error.
case INGRES_BAD_DATE:
ingres_errno = SMS_DATE;
break;
+ case INGRES_DEADLOCK:
+ ingres_errno = SMS_DEADLOCK;
+ break;
default:
ingres_errno = SMS_INGRES_ERR;
com_err(whoami, SMS_INGRES_ERR, " code %d\n", *num);
- sprintf(buf, "Ingres error %d", *num);
- send_zgram("ingres_error", buf);
+ critical_alert("SMS", "SMS server encountered INGRES ERROR %d", *num);
return (*num);
}
return (0);
status = do_update(q, &Argv[q->argc], qual, action, actarg);
if (status != SMS_SUCCESS) break;
table = q->rtable;
-## repeat replace tblstats (updates = tblstats.updates + 1,
-## modtime = "now")
-## where tblstats.#table = @table
+ if (strcmp(q->shortname, "sshi") && strcmp(q->shortname, "ssif")) {
+## repeat replace tblstats (updates = tblstats.updates + 1,
+## modtime = "now")
+## where tblstats.#table = @table
+ }
}
/* execute followup routine (if any) */
## where cqual
## inquire_equel (errorno = "errorno")
- if (errorno == 4111)
+ if (errorno == INGRES_BAD_INT)
return(SMS_INTEGER);
else if (errorno != 0)
return(SMS_INGRES_ERR);