Skip to content

Commit

Permalink
fix(v_sql): use alias on v_sql to get feature
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarfuste committed Aug 20, 2024
1 parent df7f2bd commit 6e613fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/fct/gw_fct_getvisit.sql
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ BEGIN
END IF;

-- Get feature
v_sql = concat('SELECT DISTINCT(layer_id), orderby+100 orderby, addparam->>''geomType'' as geomtype, lower(headertext) as feature_type FROM ',quote_ident(v_config_layer),' JOIN cat_feature ON parent_layer=layer_id ORDER BY orderby');
v_sql = concat('SELECT DISTINCT(layer_id), orderby+100 orderby, cl.addparam->>''geomType'' as geomtype, lower(headertext) as feature_type FROM ',quote_ident(v_config_layer),' cl JOIN cat_feature cf ON parent_layer=layer_id ORDER BY orderby');

FOR v_layer IN EXECUTE v_sql
loop
Expand Down

0 comments on commit 6e613fd

Please sign in to comment.