definition is stored in regex object

This commit is contained in:
Paul Trowbridge 2018-05-30 08:57:10 -04:00
parent 2af0a3432b
commit ffb55cafa9
2 changed files with 4 additions and 4 deletions

View File

@ -284,7 +284,7 @@ BEGIN
--map name --map name
,_defn->>'name' ,_defn->>'name'
--map definition --map definition
,_defn ,_defn->'regex'
--map aggregation sequence --map aggregation sequence
,(_defn->>'sequence')::INTEGER ,(_defn->>'sequence')::INTEGER
--history definition --history definition
@ -295,7 +295,7 @@ BEGIN
ON CONFLICT ON CONSTRAINT map_rm_pk DO UPDATE SET ON CONFLICT ON CONSTRAINT map_rm_pk DO UPDATE SET
srce = _defn->>'srce' srce = _defn->>'srce'
,target = _defn->>'name' ,target = _defn->>'name'
,regex = _defn ,regex = _defn->'regex'
,seq = (_defn->>'sequence')::INTEGER ,seq = (_defn->>'sequence')::INTEGER
,hist = ,hist =
--the new definition going to position -0- --the new definition going to position -0-

View File

@ -20,7 +20,7 @@ BEGIN
--map name --map name
,_defn->>'name' ,_defn->>'name'
--map definition --map definition
,_defn ,_defn->'regex'
--map aggregation sequence --map aggregation sequence
,(_defn->>'sequence')::INTEGER ,(_defn->>'sequence')::INTEGER
--history definition --history definition
@ -31,7 +31,7 @@ BEGIN
ON CONFLICT ON CONSTRAINT map_rm_pk DO UPDATE SET ON CONFLICT ON CONSTRAINT map_rm_pk DO UPDATE SET
srce = _defn->>'srce' srce = _defn->>'srce'
,target = _defn->>'name' ,target = _defn->>'name'
,regex = _defn ,regex = _defn->'regex'
,seq = (_defn->>'sequence')::INTEGER ,seq = (_defn->>'sequence')::INTEGER
,hist = ,hist =
--the new definition going to position -0- --the new definition going to position -0-