| From: | mike g <mike(at)thegodshalls(dot)com> |
|---|---|
| To: | "Pradeepkumar, Pyatalo (IE10)" <Pradeepkumar(dot)Pyatalo(at)honeywell(dot)com> |
| Cc: | pgsql-novice(at)postgresql(dot)org |
| Subject: | Re: error in compiling the function -- need help !!! |
| Date: | 2004-08-03 03:31:41 |
| Message-ID: | 1091503900.16772.6.camel@localhost.localdomain |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-novice pgsql-sql |
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(at)postgresql(dot)org
| From | Date | Subject | |
|---|---|---|---|
| Next Message | mike g | 2004-08-03 03:47:25 | Re: Significant trailing spaces |
| Previous Message | Tom Lane | 2004-08-03 01:15:23 | Re: Comparing database schema's |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Pedro B. | 2004-08-03 07:22:51 | Datetime |
| Previous Message | Kevin Davis | 2004-08-03 02:11:19 | Re: Trigger and function not on speaking terms |