Re: Need help using function

From: John R Pierce <pierce(at)hogranch(dot)com>
To: Bob Pawley <rjpawley(at)shaw(dot)ca>, pgsql-general(at)postgresql(dot)org
Subject: Re: Need help using function
Date: 2009-06-26 17:15:33
Message-ID: 4A450235.7040900@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Bob Pawley wrote:
> Hi
>
> I want to try using functions but I am having trouble understanding
> return.
>
> ...
>
> The error message - "control reached end of function without RETURN"
>
> I have attempted adding - Return integer; to the end of the function
> with no success.
>

I'd try adding
RETURN 1;
or similar, before the END;

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bob Pawley 2009-06-26 17:28:04 Re: Need help using function
Previous Message Bob Pawley 2009-06-26 17:09:55 Need help using function