Fix code style
This commit is contained in:
parent
91b057b0fb
commit
f9448ab188
1 changed files with 5 additions and 8 deletions
|
@ -1,16 +1,13 @@
|
|||
BEGIN;
|
||||
|
||||
CREATE FUNCTION is_name(value TEXT) RETURNS BOOLEAN LANGUAGE plpgsql AS $$
|
||||
BEGIN
|
||||
CREATE FUNCTION is_name(value TEXT) RETURNS BOOLEAN LANGUAGE plpgsql
|
||||
AS $$BEGIN
|
||||
RETURN value = btrim(value) AND length(value) > 0;
|
||||
END;
|
||||
$$;
|
||||
END$$;
|
||||
|
||||
CREATE FUNCTION is_language_code(value VARCHAR) RETURNS BOOLEAN LANGUAGE plpgsql
|
||||
AS $$
|
||||
BEGIN
|
||||
AS $$BEGIN
|
||||
RETURN value ~ '^[a-z]{2}$';
|
||||
END;
|
||||
$$;
|
||||
END$$;
|
||||
|
||||
COMMIT;
|
||||
|
|
Loading…
Reference in a new issue