modify sql functions
This commit is contained in:
@ -1,4 +1,6 @@
|
||||
CREATE OR REPLACE FUNCTION website_exists(in_website_name text) RETURNS boolean AS $$
|
||||
CREATE OR REPLACE FUNCTION public.website_exists(in_website_name text) RETURNS boolean
|
||||
LANGUAGE plpgsql STRICT
|
||||
AS $$
|
||||
BEGIN
|
||||
PERFORM * FROM website w
|
||||
WHERE w.name = in_website_name;
|
||||
@ -9,4 +11,4 @@ BEGIN
|
||||
RETURN 0;
|
||||
END IF;
|
||||
END;
|
||||
$$ LANGUAGE plpgsql STRICT;
|
||||
$$;
|
||||
|
Reference in New Issue
Block a user