dbTalk Databases Forums  

error in compiling the function -- need help !!!

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss error in compiling the function -- need help !!! in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Pradeepkumar, Pyatalo
 
Posts: n/a

Default error in compiling the function -- need help !!! - 08-02-2004 , 12:33 AM








Quote:
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



Reply With Quote
  #2  
Old   
mike g
 
Posts: n/a

Default Re: error in compiling the function -- need help !!! - 08-02-2004 , 10:31 PM






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:
Quote:
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
---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.