From 5b2bfa99d46f1befec146f36f7a9a46b672e8162 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Wed, 19 Dec 2018 00:12:07 -0500 Subject: [PATCH] parameter name and refernce to tps.srce got deleted --- database/interface/source_maint/srce_overwrite_all.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/interface/source_maint/srce_overwrite_all.sql b/database/interface/source_maint/srce_overwrite_all.sql index c7018e5..5318d02 100644 --- a/database/interface/source_maint/srce_overwrite_all.sql +++ b/database/interface/source_maint/srce_overwrite_all.sql @@ -3,7 +3,7 @@ This function takes and array of definition object where "name" object is the pr It will force the entire body of sources to match what is received */ DROP FUNCTION IF EXISTS tps.srce_overwrite_all(jsonb); -CREATE FUNCTION tps.srce_overwrite_all(jsonb) RETURNS jsonb +CREATE FUNCTION tps.srce_overwrite_all(_defn jsonb) RETURNS jsonb AS $f$ DECLARE @@ -31,7 +31,7 @@ BEGIN ,CASE COALESCE(_set.srce,'DELETE') WHEN 'DELETE' THEN 'DELETE' ELSE 'SET' END actn ,COALESCE(_set.defn,_srce.defn) defn FROM - l + tps.srce _srce FULL OUTER JOIN _set ON _set.srce = _srce.srce )