JBAS-1554 Circ history checker log correct offset
authorBill Erickson <berickxx@gmail.com>
Mon, 14 Aug 2017 16:12:01 +0000 (12:12 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
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 <berickxx@gmail.com>
KCLS/sql/schema/tools/circ-history-migrate-check.sql

index 50965ca..dc7877d 100644 (file)
@@ -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;