Skip to content

Commit

Permalink
fix(selector): Minor bug fix from prev commit
Browse files Browse the repository at this point in the history
(cherry picked from commit b8e8ad0)
  • Loading branch information
xtorret committed Dec 31, 2024
1 parent 1861cb0 commit f972d79
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions utils/fct/gw_fct_setselectors.sql
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ BEGIN
ON CONFLICT (',v_columnname,', cur_user) DO NOTHING;');
END IF;

ELSIF v_checkall is false THEN
EXECUTE 'DELETE FROM ' || v_tablename || ' WHERE cur_user = current_user';

ELSE
IF v_isalone THEN
EXECUTE 'DELETE FROM ' || v_tablename || ' WHERE cur_user = current_user';
Expand All @@ -176,6 +179,8 @@ BEGIN
ELSE
EXECUTE 'DELETE FROM ' || v_tablename || ' WHERE ' || v_columnname || '::text = '''|| v_id ||''' AND cur_user = current_user';
END IF;


END IF;

-- manage parents
Expand Down

0 comments on commit f972d79

Please sign in to comment.