when setting the map regex, retain the whole json being supplied
This commit is contained in:
parent
5e2b6ee59d
commit
0e028af435
@ -361,7 +361,7 @@ BEGIN
|
|||||||
--map name
|
--map name
|
||||||
,ae.r->>'name'
|
,ae.r->>'name'
|
||||||
--map definition
|
--map definition
|
||||||
,ae.r->'regex'
|
,ae.r
|
||||||
--map aggregation sequence
|
--map aggregation sequence
|
||||||
,(ae.r->>'sequence')::INTEGER
|
,(ae.r->>'sequence')::INTEGER
|
||||||
--history definition
|
--history definition
|
||||||
|
@ -20,7 +20,7 @@ BEGIN
|
|||||||
--map name
|
--map name
|
||||||
,ae.r->>'name'
|
,ae.r->>'name'
|
||||||
--map definition
|
--map definition
|
||||||
,ae.r->'regex'
|
,ae.r
|
||||||
--map aggregation sequence
|
--map aggregation sequence
|
||||||
,(ae.r->>'sequence')::INTEGER
|
,(ae.r->>'sequence')::INTEGER
|
||||||
--history definition
|
--history definition
|
||||||
|
@ -12,7 +12,7 @@ BEGIN
|
|||||||
_path:= ARRAY['schemas',_schema]::text[];
|
_path:= ARRAY['schemas',_schema]::text[];
|
||||||
--_srce:= 'dcard';
|
--_srce:= 'dcard';
|
||||||
SELECT
|
SELECT
|
||||||
'DROP VIEW IF EXISTS tpsv.'||_srce||'_'||_path[2]||'; CREATE VIEW tpsv.'||_srce||'_'||_path[2]||' AS SELECT id, logid, '||string_agg('(allj#>>'''||r.PATH::text||''')::'||r.type||' AS "'||r.column_name||'"',', ')||' FROM tps.trans WHERE srce = '''||_srce||''';'
|
'DROP VIEW IF EXISTS tpsv.'||_srce||'_'||_path[2]||'; CREATE VIEW tpsv.'||_srce||'_'||_path[2]||' AS SELECT id, logid, allj, '||string_agg('(allj#>>'''||r.PATH::text||''')::'||r.type||' AS "'||r.column_name||'"',', ')||' FROM tps.trans WHERE srce = '''||_srce||''';'
|
||||||
INTO
|
INTO
|
||||||
_sql
|
_sql
|
||||||
FROM
|
FROM
|
||||||
|
Loading…
Reference in New Issue
Block a user