This commit is contained in:
parent
fe4288ddc4
commit
d26aa997f3
@ -21,7 +21,7 @@ create function public.grp_add_members(to_grp int, add_usrs int[])
|
|||||||
as $$
|
as $$
|
||||||
begin
|
begin
|
||||||
insert into public.grp_usr (grp, usr)
|
insert into public.grp_usr (grp, usr)
|
||||||
select grp, usr_id
|
select to_grp, usr_id
|
||||||
from unnest(add_usrs) usr_id
|
from unnest(add_usrs) usr_id
|
||||||
left join public.grp_usr gu on gu.usr = usr_id and gu.grp = to_grp
|
left join public.grp_usr gu on gu.usr = usr_id and gu.grp = to_grp
|
||||||
where gu is null;
|
where gu is null;
|
||||||
|
Loading…
Reference in New Issue
Block a user