Skip to content

Commit

Permalink
feat(v_views): replace references to v_arc with v_edit_arc
Browse files Browse the repository at this point in the history
  • Loading branch information
mguzman14 committed Aug 5, 2024
1 parent 87fb548 commit abb9f4e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions utils/fct/gw_fct_getfeaturerelation.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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 ));
Expand Down
2 changes: 1 addition & 1 deletion utils/fct/gw_fct_getwidgetvalues.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit abb9f4e

Please sign in to comment.