Stephan Szabo <[EMAIL PROTECTED]> writes: > On 7 Nov 2002, Neil Conway wrote: > > If you have declared the function to return void, then the expression > > can be omitted, and will be ignored in any case. > > I'm not sure how you translated the above to return is optional. I'd > read it as the expression portion of the return statement is optional if > the function returns void. Thus you can say return; for the return > because the expression is optional.
Woops :-) There might be a case to be made for actually implementing this (not requiring a blank RETURN at the end of a function body if the function doesn't return anything), but the original "bug" is obviously a case of my misreading the docs. Sorry for the noise. Cheers, Neil -- Neil Conway <[EMAIL PROTECTED]> || PGP Key ID: DB3C29FC ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/users-lounge/docs/faq.html