From 72505db2762762e01103ea3adbb8cbd641e3e2f1 Mon Sep 17 00:00:00 2001 From: "xtorret@bgeo.es" Date: Wed, 28 Aug 2024 17:45:12 +0200 Subject: [PATCH] fix(fct_getprocess): Add missed alias for subquery --- utils/fct/gw_fct_getprocess.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/fct/gw_fct_getprocess.sql b/utils/fct/gw_fct_getprocess.sql index ac9a0e288f..06b845095b 100644 --- a/utils/fct/gw_fct_getprocess.sql +++ b/utils/fct/gw_fct_getprocess.sql @@ -246,7 +246,7 @@ BEGIN UNION SELECT 'v_edit_inp_subcatchment', 'SUBCATCHMENT', 6, true as active UNION SELECT 'v_edit_raingage', 'RAINGAGE', 8, true as active ) t WHERE type = UPPER(replace(v_value_element, '"', '')) AND active IS TRUE - ORDER BY c, tablename) into v_response_array; + ORDER BY c, tablename) a into v_response_array; v_value_json = gw_fct_json_object_set_key(v_value_json, replace(v_value_element, '"', ''), v_response_array); end loop; v_fields_aux = gw_fct_json_object_set_key(((v_fields->>'functionparams')::json), 'featureType', v_value_json);