#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);
## 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);