Problem with function invocation

Поиск
Список
Период
Сортировка
 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