Commit 31c8bd25 authored by Alice Salsé's avatar Alice Salsé
Browse files

👌 duplicate attribute

parent e62e599a
......@@ -9,10 +9,11 @@ RETURNS void AS $BODY$
DECLARE
_relations CURSOR FOR
select * from utils.vm_related_table
where foreign_table = i_nw_regclass::text;
where primary_table = i_nw_regclass::text;
_new_obj jsonb;
BEGIN
-- ==== Select foreign table from primary table ===
RAISE INFO 'DUPLICATE ATTRIBUTE %', i_nw_regclass;
FOR r in _relations LOOP
EXECUTE FORMAT (
'SELECT jsonb_strip_nulls(row_to_json(a.*)::jsonb) FROM %1$s a
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment