include flag to rebuild; may not want to if due to layout change
This commit is contained in:
parent
8c2936ee54
commit
271a55d6e3
@ -1,4 +1,4 @@
|
|||||||
CREATE OR REPLACE FUNCTION tps.srce_map_def_set_single(_defn jsonb) RETURNS jsonb
|
CREATE OR REPLACE FUNCTION tps.srce_map_def_set_single(_defn jsonb, _rebuild BOOLEAN) RETURNS jsonb
|
||||||
AS
|
AS
|
||||||
$f$
|
$f$
|
||||||
|
|
||||||
@ -63,12 +63,14 @@ BEGIN
|
|||||||
|
|
||||||
--------------if rebuild was flag call the rebuild--------------------------------------------------------------------------------
|
--------------if rebuild was flag call the rebuild--------------------------------------------------------------------------------
|
||||||
|
|
||||||
SELECT
|
IF _rebuild THEN
|
||||||
x.message||'{"step":"overwrite maps in tps.trans"}'::jsonb
|
SELECT
|
||||||
INTO
|
x.message||'{"step":"overwrite maps in tps.trans"}'::jsonb
|
||||||
_message
|
INTO
|
||||||
FROM
|
_message
|
||||||
tps.srce_map_overwrite(_defn->>'srce') as X(message);
|
FROM
|
||||||
|
tps.srce_map_overwrite(_defn->>'srce') as X(message);
|
||||||
|
END IF;
|
||||||
|
|
||||||
return _message;
|
return _message;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user