try modifying the mult map set function

This commit is contained in:
Paul Trowbridge 2018-06-08 00:47:48 -04:00
parent f9aa2a31a6
commit e122c4987b

View File

@ -10,7 +10,6 @@ DECLARE
BEGIN
BEGIN
INSERT INTO
tps.map_rm (srce, target, regex, seq, hist)
@ -48,7 +47,9 @@ BEGIN
,to_jsonb(CURRENT_TIMESTAMP)
);
EXCEPTION WHEN OTHERS THEN
_message:= jsonb_build_object('status','complete','message','definition has been set');
return _message;
GET STACKED DIAGNOSTICS
_MESSAGE_TEXT = MESSAGE_TEXT,
@ -64,10 +65,8 @@ BEGIN
||jsonb_build_object('message_text',_MESSAGE_TEXT)
||jsonb_build_object('pg_exception_detail',_PG_EXCEPTION_DETAIL);
return _message;
END;
_message:= jsonb_build_object('status','complete','message','definition has been set');
return _message;
END;
$f$