Re: Problem with function invocation

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Problem with function invocation
Дата
Msg-id Pine.BSF.4.21.0104160813410.71391-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Problem with function invocation  (DaVinci <bombadil@wanadoo.es>)
Список pgsql-general
On Mon, 16 Apr 2001, DaVinci wrote:

>  Hello.
>
>  When I create next function:
>
>      create function pilpot() returns integer as '
>         declare
>             foo integer;
>         begin
>             foo = insert into aviso(user) values(1);
>             return foo;
>         end;
>     ' language 'plpgsql';
>

What exactly are you trying to return from the function?
Removing the foo declaration and foo = from the insert line
(and double quoting the reserved word user) on 7.1 makes
the function work for me (I just returned 1).


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

Предыдущее
От: Justin Clift
Дата:
Сообщение: Re: OS Crypt()
Следующее
От: Lamar Owen
Дата:
Сообщение: RPMs for PostgreSQL7.1 available.