From abb9f4eedc1bbf8dfe80003944bebd9107169d4b Mon Sep 17 00:00:00 2001 From: mguzman14 Date: Mon, 5 Aug 2024 14:24:25 +0200 Subject: [PATCH] feat(v_views): replace references to v_arc with v_edit_arc --- utils/fct/gw_fct_getfeaturerelation.sql | 8 ++++---- utils/fct/gw_fct_getwidgetvalues.sql | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/utils/fct/gw_fct_getfeaturerelation.sql b/utils/fct/gw_fct_getfeaturerelation.sql index 0e4b05e73c..8f32afb820 100644 --- a/utils/fct/gw_fct_getfeaturerelation.sql +++ b/utils/fct/gw_fct_getfeaturerelation.sql @@ -102,10 +102,10 @@ BEGIN END IF; --check final nodes related to arc - SELECT concat(node_1,',',node_2) INTO v_connect_node FROM v_arc - LEFT JOIN node a ON a.node_id::text = v_arc.node_1::text - LEFT JOIN node b ON b.node_id::text = v_arc.node_2::text - WHERE v_arc.arc_id = v_feature_id; + SELECT concat(node_1,',',node_2) INTO v_connect_node FROM v_edit_arc + LEFT JOIN node a ON a.node_id::text = v_edit_arc.node_1::text + LEFT JOIN node b ON b.node_id::text = v_edit_arc.node_2::text + WHERE v_edit_arc.arc_id = v_feature_id; IF v_connect_node IS NOT NULL THEN INSERT INTO audit_check_data (fid, result_id, error_message) VALUES (151, v_result_id, concat('Nodes connected with the feature: ',v_connect_node )); diff --git a/utils/fct/gw_fct_getwidgetvalues.sql b/utils/fct/gw_fct_getwidgetvalues.sql index 8417f253cc..bae6fbf421 100644 --- a/utils/fct/gw_fct_getwidgetvalues.sql +++ b/utils/fct/gw_fct_getwidgetvalues.sql @@ -57,7 +57,7 @@ BEGIN IF v_featuretype ='NODE' THEN - v_min = (SELECT max(y) FROM (SELECT sys_y1 as y FROM v_arc WHERE node_1=v_id UNION SELECT sys_y2 FROM v_arc WHERE node_2=v_id)a); + v_min = (SELECT max(y) FROM (SELECT sys_y1 as y FROM v_edit_arc WHERE node_1=v_id UNION SELECT sys_y2 FROM v_edit_arc WHERE node_2=v_id)a); IF v_min IS NULL THEN v_min = 0; END IF; ELSIF v_featuretype ='ARC' THEN