Commit 77ebef46 authored by Daniel Haag's avatar Daniel Haag
Browse files

fixed missing semicolon and unified function definition format in postgres structure functions

parent c8ca18e2
......@@ -170,9 +170,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
......@@ -198,7 +195,9 @@ WHERE u.user_name = userid
RETURN xoutput;
END;
$function$
LANGUAGE plpgsql
SECURITY DEFINER
SET search_path TO tcexam, pg_temp;
ALTER FUNCTION get_tcexam_user(character varying)
OWNER TO tcexam;
......@@ -236,9 +235,6 @@ ALTER FUNCTION insert_tcexam_group(character varying, character varying, charact
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;
......@@ -265,7 +261,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;
......@@ -347,9 +345,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;
......@@ -390,7 +385,9 @@ AS $function$
END;
$function$
LANGUAGE plpgsql
SECURITY DEFINER
SET search_path TO tcexam, pg_temp;
ALTER FUNCTION update_tcexam_user(text)
OWNER TO tcexam;
......
Supports Markdown
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