* Copyright (C) 1987 by the Massachusetts Institute of Technology
*
* $Log$
- * Revision 1.9 1987-08-22 17:47:38 wesommer
- * Cleanup (these changes were by Mike).
+ * Revision 1.10 1987-08-28 14:57:51 mike
+ * Modified sms_query to not enclose RETRIEVE queries in begin/end transaction.
+ * This was necessary to allow get_all_poboxes and get_groups_of_all_users
+ * to temporarily change the Ingres lockmode.
*
+ * Revision 1.9 87/08/22 17:47:38 wesommer
+ * Cleanup (these changes were by Mike).
+ *
* Revision 1.8 87/08/10 16:22:26 mike
* wesommer modified error reporting.
*
return(status);
}
-## begin transaction
+ if (q->type != RETRIEVE)
+## begin transaction
switch (q->type) {
case RETRIEVE:
}
- if (status == SMS_SUCCESS)
-## end transaction
- else
-## abort
+ if (q->type != RETRIEVE) {
+ if (status == SMS_SUCCESS) {
+## end transaction
+ } else {
+## abort
+ }
+ }
if (status != SMS_SUCCESS && log_flags & LOG_RES)
com_err(whoami, status, " (Query failed)");