}
out:
+ if (status == SMS_SUCCESS && ingres_errno != 0) {
+ com_err(whoami, SMS_INTERNAL, "Server didn't notice INGRES ERROR %d",
+ ingres_errno);
+ status = sms_errcode;
+ }
+
if (q->type != RETRIEVE) {
if (status == SMS_SUCCESS) {
## end transaction /* commit to this */
## set lockmode session where readlock = system
}
- if (status == SMS_SUCCESS && ingres_errno != 0) {
- critical_alert("SMS", "Server didn't notice INGRES ERROR %d",
- ingres_errno);
- status = SMS_INTERNAL;
- }
-
if (status != SMS_SUCCESS && log_flags & LOG_RES)
com_err(whoami, status, " (Query failed)");
return(status);