Problem with function invocation - Mailing list pgsql-general

From DaVinci
Subject Problem with function invocation
Date
Msg-id 20010416154323.A15808@fangorn.net
Whole thread Raw
Responses Re: Problem with function invocation
Re: Problem with function invocation
Re: Problem with function invocation
List 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 by date:

Previous
From: Patrick Dunford
Date:
Subject: Re: Table names / mixed case / Postgresql 7.0.3
Next
From: Patrick Dunford
Date:
Subject: bpchar type