Unix Technical Forum

Return void error in PG 8.1.0

This is a discussion on Return void error in PG 8.1.0 within the pgsql Novice forums, part of the PostgreSQL category; --> We are testing our system using PG 8.1.0 instead of 8.0.4. When I recreated functions I discovered that the ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Novice

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 10:22 PM
Walker, Jed S
 
Posts: n/a
Default Return void error in PG 8.1.0

We are testing our system using PG 8.1.0 instead of 8.0.4. When I
recreated functions I discovered that the ones that have "returns void"
and do return void all failed with the following error (when creating
them):

ERROR: RETURN cannot have a parameter in function returning void at or
near "void" at character 357

Is this a known issue or change to PG? Is there a way to still return
void in 8.1.0?

Any help would be appreciated in figuring this out.

Thanks,

Jed

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-17-2008, 10:22 PM
Tom Lane
 
Posts: n/a
Default Re: Return void error in PG 8.1.0

"Walker, Jed S" <Jed_Walker@cable.comcast.com> writes:
> We are testing our system using PG 8.1.0 instead of 8.0.4. When I
> recreated functions I discovered that the ones that have "returns void"
> and do return void all failed with the following error (when creating
> them):


> ERROR: RETURN cannot have a parameter in function returning void at or
> near "void" at character 357


> Is this a known issue or change to PG? Is there a way to still return
> void in 8.1.0?


"return void" was never correct; the correct and documented thing is
just "return"; but older versions of plpgsql were laxer about complaining
about junk in a RETURN that should have no parameter.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:10 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com