Skip to content

Commit

Permalink
fix(v_proximity_buffer): bug fix with non-declarated variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mguzman14 committed Aug 27, 2024
1 parent e745c98 commit b442f4b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions utils/ftrg/gw_trg_edit_samplepoint.sql
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,17 @@ v_expl_id_int integer;
v_sample_id_seq int8;
v_count integer;
v_projectype text;
v_proximity_buffer double precision;

BEGIN

EXECUTE 'SET search_path TO '||quote_literal(TG_TABLE_SCHEMA)||', public';

v_projectype = (SELECT project_type FROM sys_version ORDER BY id DESC LIMIT 1);
v_proximity_buffer = (SELECT "value" FROM config_param_system WHERE parameter='edit_feature_buffer_on_mapzone');


IF v_proximity_buffer IS NULL THEN v_proximity_buffer=0.5; END IF;
-- INSERT
IF TG_OP = 'INSERT' THEN

Expand Down

0 comments on commit b442f4b

Please sign in to comment.