From: Galen Charlton Date: Mon, 30 Dec 2013 18:14:11 +0000 (-0500) Subject: fix return type of two collectionHQ functions X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a4c811aec22b0e1801e0b7ec2e51bab1a9b039b8;p=contrib%2Fequinox.git fix return type of two collectionHQ functions The write_*_rows_to_stdout() functions return nothing, so set the return type accordingly to avoid "control reached end of function without RETURN" warnings. Signed-off-by: Galen Charlton --- diff --git a/collectionHQ/functions.sql b/collectionHQ/functions.sql index 1ebb6c2..0cea710 100644 --- a/collectionHQ/functions.sql +++ b/collectionHQ/functions.sql @@ -79,8 +79,8 @@ CREATE OR REPLACE FUNCTION collectionHQ.quote (TEXT) RETURNS TEXT AS $$ END; $$ LANGUAGE PLPGSQL STRICT STABLE; - -CREATE OR REPLACE FUNCTION collectionHQ.write_item_rows_to_stdout (TEXT, INT) RETURNS TEXT AS $$ +DROP FUNCTION IF EXISTS collectionHQ.write_item_rows_to_stdout (TEXT, INT); +CREATE OR REPLACE FUNCTION collectionHQ.write_item_rows_to_stdout (TEXT, INT) RETURNS VOID AS $$ -- Usage: SELECT collectionHQ.write_item_rows_to_stdout ('LIBRARYCODE',org_unit_id); DECLARE @@ -203,7 +203,8 @@ CREATE OR REPLACE FUNCTION collectionHQ.write_item_rows_to_stdout (TEXT, INT) RE $$ LANGUAGE plpgsql; -CREATE OR REPLACE FUNCTION collectionHQ.write_bib_rows_to_stdout (TEXT, INT) RETURNS TEXT AS $$ +DROP FUNCTION IF EXISTS collectionHQ.write_bib_rows_to_stdout(TEXT, INT); +CREATE OR REPLACE FUNCTION collectionHQ.write_bib_rows_to_stdout (TEXT, INT) RETURNS VOID AS $$ -- Usage: SELECT collectionHQ.write_bib_rows_to_stdout('LIBRARYCODE', org_unit_id); DECLARE