Problem with function invocation

Поиск
Список
Период
Сортировка
От DaVinci
Тема Problem with function invocation
Дата
Msg-id 20010416154323.A15808@fangorn.net
обсуждение исходный текст
Ответы Re: Problem with function invocation  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Problem with function invocation  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Re: Problem with function invocation  (will trillich <will@serensoft.com>)
Список pgsql-general
 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';

 And try to invoque with:

     # select pilpot();

 I get next error:

     ERROR: parser: parse error at or near "("

 Where is the problem with this?

 Thanks a lot.

                                 David

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

Предыдущее
От: Patrick Dunford
Дата:
Сообщение: Re: Table names / mixed case / Postgresql 7.0.3
Следующее
От: Patrick Dunford
Дата:
Сообщение: bpchar type