Re: order of statements in create function

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: order of statements in create function
Дата
Msg-id 200407092046.38566.peter_e@gmx.net
обсуждение исходный текст
Ответ на order of statements in create function  (Markus Bertheau <twanger@bluetwanger.de>)
Список pgsql-general
Markus Bertheau wrote:
> why does everyone write
>
> CREATE FUNCTION foo() RETURNS INTEGER AS '
> blah blah
> ' LANGUAGE 'plpgsql';
>
> I've never seen for example:
>
> CREATE FUNCTION foo()
>     RETURNS INTEGER
>     LANGUAGE 'plpgsql'
>     AS '
> blah blah
> ';
>
> Is there a special reason to this? I have a hard time believing that
> everyone does it the same way by coincidence.

The first used to be the only allowed order, before we made it more
flexible, as specified by the SQL standard.


В списке pgsql-general по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: order of statements in create function
Следующее
От: Markus Bertheau
Дата:
Сообщение: Re: order of statements in create function