For backwards compatibility with queue stats info on captured holds,
clear hold copy maps at fulfillment time instead of capture time, as
before.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
FOR EACH ROW
WHEN (
(NEW.cancel_time IS NOT NULL AND OLD.cancel_time IS NULL)
- OR (NEW.capture_time IS NOT NULL AND OLD.capture_time IS NULL)
+ OR (NEW.fulfillment_time IS NOT NULL AND OLD.fulfillment_time IS NULL)
)
EXECUTE PROCEDURE action.hold_request_clear_map();
FOR EACH ROW
WHEN (
(NEW.cancel_time IS NOT NULL AND OLD.cancel_time IS NULL)
- OR (NEW.capture_time IS NOT NULL AND OLD.capture_time IS NULL)
+ OR (NEW.fulfillment_time IS NOT NULL AND OLD.fulfillment_time IS NULL)
)
EXECUTE PROCEDURE action.hold_request_clear_map();