Re: error in compiling the function -- need help !!! - Mailing list pgsql-novice

From mike g
Subject Re: error in compiling the function -- need help !!!
Date
Msg-id 1091503900.16772.6.camel@localhost.localdomain
Whole thread Raw
In response to error in compiling the function -- need help !!!  ("Pradeepkumar, Pyatalo (IE10)" <Pradeepkumar.Pyatalo@honeywell.com>)
List pgsql-novice
Hello,

I think you need another return statement near the end. Between the ELSE
and END IF so that if your code hits that point there is a Return called
to end the function.

HTH.

Mike
On Mon, 2004-08-02 at 00:33, Pradeepkumar, Pyatalo (IE10) wrote:
> > Hi ,
> >
> > I have attached the function that I am trying to run. But I am getting the
> > following error -
> >
> > select * from pp_readenum('STAT42','PointDefinitionType')  as alias;
> > ERROR: syntax error at or near ";"
> > CONTEXT: compile of PL/pgSQL function "pp_readenum" near line 41
> > <<Procedures.sql>>
> >
> > I have checked the function many times....I could not figure out what
> > could be wrong....any help on this.
> >
> >     With Best Regards
> >     Pradeep Kumar P J
> >
>
> ______________________________________________________________________
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: Comparing database schema's
Next
From: mike g
Date:
Subject: Re: Significant trailing spaces