From: Bill Erickson Date: Mon, 14 Aug 2017 16:12:01 +0000 (-0400) Subject: JBAS-1554 Circ history checker log correct offset X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=afc8bbe476111077a7cd04bf71f6d4ec758ed58c;p=working%2FEvergreen.git JBAS-1554 Circ history checker log correct offset Log the correct 0-based offset when reporting patrons that have un-migrated circulations. This makes manually repairing them easier. Signed-off-by: Bill Erickson --- diff --git a/KCLS/sql/schema/tools/circ-history-migrate-check.sql b/KCLS/sql/schema/tools/circ-history-migrate-check.sql index 50965ca5d2..dc7877d3b5 100644 --- a/KCLS/sql/schema/tools/circ-history-migrate-check.sql +++ b/KCLS/sql/schema/tools/circ-history-migrate-check.sql @@ -41,7 +41,8 @@ BEGIN IF FOUND THEN migrated_count := migrated_count + 1; ELSE - RAISE NOTICE 'User % [offset=%] has pending circs', cur_usr, usr_count; + RAISE NOTICE 'User % [offset = %] has pending circs', + cur_usr, (usr_count - 1); pending_count := pending_count + 1; END IF; END LOOP;