Commit 65e3c560 authored by User expired's avatar User expired
Browse files

added grouptype to postgresql function insert_tcexam_group

parent e5ea201d
......@@ -284,19 +284,20 @@ $BODY$
DECLARE
externalid character varying;
appointmentid character varying;
groupvo xml;
grouptype character varying;
groupvo xml;
BEGIN
grouptype='T';
externalid = CONCAT (pgroupid,':',pappointmentid);
IF pappointmentid = 'owner' THEN
grouptype = 'B';
END IF;
IF NOT EXISTS(SELECT group_id FROM tce_user_groups WHERE external_id = externalid)
THEN
INSERT INTO tce_user_groups (group_name, external_id) VALUES (pgroupname,externalid);
INSERT INTO tce_user_groups (group_name, external_id,group_type) VALUES (pgroupname,externalid,grouptype);
END IF;
END;
$BODY$
END;$BODY$
LANGUAGE plpgsql VOLATILE
SECURITY DEFINER
-- Set a secure search_path: trusted schema(s), then 'pg_temp'.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment