From 97585717bd83736d008430381c17629b5c2588ab Mon Sep 17 00:00:00 2001 From: "xtorret@bgeo.es" Date: Fri, 20 Sep 2024 21:48:18 +0200 Subject: [PATCH] fix(manage_planmode): minor syntax error (cherry picked from commit 00479f5925a59c726b8a95efb17dd94b658dc8a2) --- utils/fct/gw_fct_admin_manage_planmode.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/fct/gw_fct_admin_manage_planmode.sql b/utils/fct/gw_fct_admin_manage_planmode.sql index a65e2ab4c8..b1c12beeed 100644 --- a/utils/fct/gw_fct_admin_manage_planmode.sql +++ b/utils/fct/gw_fct_admin_manage_planmode.sql @@ -156,11 +156,11 @@ BEGIN p AS (SELECT connec_id, psector_id, state, arc_id FROM plan_psector_x_connec WHERE active), s AS (SELECT * FROM selector_psector WHERE cur_user = current_user), c as (SELECT connec_id, state, arc_id FROM connec) - SELECT c.connec_id, c.arc_id, state as flag FROM selector_state,c WHERE c.state = selector_state.state_id AND selector_state.cur_user = "current_user"()::text + SELECT c.connec_id::varchar(30), c.arc_id, state as flag FROM selector_state,c WHERE c.state = selector_state.state_id AND selector_state.cur_user = "current_user"()::text EXCEPT - SELECT p.connec_id, p.arc_id, p.state FROM selector_psector, p WHERE p.psector_id = selector_psector.psector_id AND selector_psector.cur_user = "current_user"()::text AND p.state = 0 + SELECT p.connec_id::varchar(30), p.arc_id, p.state FROM selector_psector, p WHERE p.psector_id = selector_psector.psector_id AND selector_psector.cur_user = "current_user"()::text AND p.state = 0 UNION - SELECT p.connec_id, p.arc_id, p.state FROM selector_psector, p WHERE p.psector_id = selector_psector.psector_id AND selector_psector.cur_user = "current_user"()::text AND p.state = 1; + SELECT p.connec_id::varchar(30), p.arc_id, p.state FROM selector_psector, p WHERE p.psector_id = selector_psector.psector_id AND selector_psector.cur_user = "current_user"()::text AND p.state = 1; IF v_project_type ='WS' THEN