Re: Need help using function - Mailing list pgsql-general

From John R Pierce
Subject Re: Need help using function
Date
Msg-id 4A450235.7040900@hogranch.com
Whole thread Raw
In response to Need help using function  ("Bob Pawley" <rjpawley@shaw.ca>)
List 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;



pgsql-general by date:

Previous
From: "Bob Pawley"
Date:
Subject: Need help using function
Next
From: "Bob Pawley"
Date:
Subject: Re: Need help using function