From: Thomas Berezansky Date: Mon, 18 Jun 2012 16:49:39 +0000 (-0400) Subject: Circ Chain Functions should take BIGINTs X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3a578b1070e83247eae39a08fc21433269457ce9;p=working%2FEvergreen.git Circ Chain Functions should take BIGINTs Because INTEGER isn't suitable for circ IDs. This only requires editing the input definitions. Signed-off-by: Thomas Berezansky Signed-off-by: Jason Stephenson --- diff --git a/Open-ILS/src/sql/Pg/090.schema.action.sql b/Open-ILS/src/sql/Pg/090.schema.action.sql index 9dec15f306..d4d63d3475 100644 --- a/Open-ILS/src/sql/Pg/090.schema.action.sql +++ b/Open-ILS/src/sql/Pg/090.schema.action.sql @@ -580,7 +580,7 @@ CREATE TYPE action.circ_chain_summary AS ( ); -CREATE OR REPLACE FUNCTION action.circ_chain ( ctx_circ_id INTEGER ) RETURNS SETOF action.circulation AS $$ +CREATE OR REPLACE FUNCTION action.circ_chain ( ctx_circ_id BIGINT ) RETURNS SETOF action.circulation AS $$ DECLARE tmp_circ action.circulation%ROWTYPE; circ_0 action.circulation%ROWTYPE; @@ -615,7 +615,7 @@ BEGIN END; $$ LANGUAGE 'plpgsql'; -CREATE OR REPLACE FUNCTION action.summarize_circ_chain ( ctx_circ_id INTEGER ) RETURNS action.circ_chain_summary AS $$ +CREATE OR REPLACE FUNCTION action.summarize_circ_chain ( ctx_circ_id BIGINT ) RETURNS action.circ_chain_summary AS $$ DECLARE