Обсуждение: semicolon not required on END statement

Поиск
Список
Период
Сортировка

semicolon not required on END statement

От
Hussein Patni
Дата:
Hello,

    I noticed in plpgsql that a semi colon is not always required after
the END statement. A contrived example:

CREATE sequence foo;
=A0
CREATE OR REPLACE FUNCTION bar() RETURNS VOID AS '
DECLARE
bar int;
BEGIN
SELECT INTO bar nextval(''foo'');
RETURN;
END
' LANGUAGE plpgsql;

--hussein