function problem - Mailing list pgsql-novice

From Luis Silva
Subject function problem
Date
Msg-id BAY18-F42278188FBEBBB31CEADCB52D0@phx.gbl
Whole thread Raw
Responses Re: function problem  ("Luis Silva" <lfs12@hotmail.com>)
List pgsql-novice
I there, I don't know what is happening. I can't run any of my functions. I
can make but i can't run it. but I can run my trigger functions. what might
be the problem, bad installation??

I run this example function

CREATE FUNCTION add_one (integer) RETURNS INTEGER AS '
     BEGIN
         RETURN $1 + 1;
     END;
' LANGUAGE 'plpgsql';

and when I run add_one(2) i get this error

ERROR:  syntax error at or near "add_one" at character 1
LINE 1: add_one(int 1);

can you help please!thanks in advance

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/


pgsql-novice by date:

Previous
From: Frank Bax
Date:
Subject: Re: backup by schema
Next
From: "Luis Silva"
Date:
Subject: Re: function problem