Commit 9c662978 authored by Daniel Haag's avatar Daniel Haag
Browse files

fixed sql errors

parent 143fde46
-- modifying the schema to allow an external_id
ALTER TABLE tce_user_groups ADD COLUMN external_id varchar(255);
......@@ -181,9 +180,6 @@ ALTER FUNCTION get_tcexam_group_users(character varying)
-- get tcexam_user
CREATE OR REPLACE FUNCTION get_tcexam_user(userid character varying)
RETURNS text
LANGUAGE plpgsql
SECURITY DEFINER
SET search_path TO tcexam, pg_temp
AS $function$
DECLARE
......@@ -209,7 +205,9 @@ WHERE u.user_name = userid
RETURN xoutput;
END;
$function$
LANGUAGE plpgsql
SECURITY DEFINER
SET search_path TO tcexam, pg_temp;
-- insert_tcexam_group
......@@ -245,9 +243,6 @@ ALTER FUNCTION insert_tcexam_group(text, character varying, character varying, c
CREATE OR REPLACE FUNCTION insert_tcexam_user(xmlbody text)
RETURNS void
LANGUAGE plpgsql
SECURITY DEFINER
SET search_path TO tcexam, pg_temp
AS $function$
DECLARE
login character varying;
......@@ -274,6 +269,9 @@ AS $function$
END;
$function$
LANGUAGE plpgsql
SECURITY DEFINER
SET search_path TO tcexam, pg_temp;
ALTER FUNCTION insert_tcexam_user(text)
OWNER TO tcexam;
......@@ -356,9 +354,6 @@ ALTER FUNCTION update_tcexam_group(character varying, character varying, charact
CREATE OR REPLACE FUNCTION update_tcexam_user(xmlbody text)
RETURNS void
LANGUAGE plpgsql
SECURITY DEFINER
SET search_path TO tcexam, pg_temp
AS $function$
DECLARE
login character varying;
......@@ -399,6 +394,10 @@ AS $function$
END;
$function$
LANGUAGE plpgsql
SECURITY DEFINER
SET search_path TO tcexam, pg_temp;
ALTER FUNCTION update_tcexam_user(text)
OWNER TO tcexam;
......@@ -572,10 +571,4 @@ GRANT EXECUTE ON FUNCTION update_tcexam_user(xmlbody text) TO esb;
GRANT EXECUTE ON FUNCTION get_tcexam_recent_tests(externalid character varying) TO esb;
GRANT EXECUTE ON FUNCTION set_tcexam_email_sent(groupid character varying, emailnumber integer) TO esb;
GRANT EXECUTE ON FUNCTION count_tcexam_users_by_exam(external_group_id character varying, external_appointment_id character varying) TO esb;
GRANT EXECUTE ON FUNCTION get_tcexam_groupid(pgroupid character varying, pappointmentid character varying) TO esb;
GRANT EXECUTE ON FUNCTION get_tcexam_groupid(pgroupid character varying, pappointmentid character varying) TO esb;
\ No newline at end of file
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