JBAS-1554 Custom purge circs SQL params repair
authorBill Erickson <berickxx@gmail.com>
Mon, 5 Jun 2017 15:22:52 +0000 (11:22 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
Update action.purge_circulations_custom definition to include the start
and end time function parameters to ensure the existing function is
replaced instead of creating a new function.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
KCLS/sql/schema/deploy/patron-co-history-stage-2.sql

index 5ad4996..716b7c0 100644 (file)
@@ -111,10 +111,9 @@ $$;
 -- NOTE: ^-- stock CSV template does not include checkin_time, so 
 -- no modifications are required.
 
-CREATE OR REPLACE FUNCTION action.purge_circulations_custom () RETURNS INT AS $func$
+CREATE OR REPLACE FUNCTION action.purge_circulations_custom 
+    (in_time_start TIMESTAMPTZ, in_time_end TIMESTAMPTZ) RETURNS INT AS $func$
 DECLARE
-    usr_keep_age    actor.usr_setting%ROWTYPE;
-    usr_keep_start  actor.usr_setting%ROWTYPE;
     org_keep_age    INTERVAL;
     org_use_last    BOOL = false;
     org_age_is_min  BOOL = false;