Re: Need help using function

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

That worked.

However, perhaps I don't understand the idea of a function.

If the , in this case ('1'), was in fact an unknown variable what would the
return be?

Bob
----- Original Message -----
From: "John R Pierce" <pierce(at)hogranch(dot)com>
To: "Bob Pawley" <rjpawley(at)shaw(dot)ca>; <pgsql-general(at)postgresql(dot)org>
Sent: Friday, June 26, 2009 10:15 AM
Subject: Re: [GENERAL] Need help using function

> 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 Jonah H. Harris 2009-06-26 17:30:46 Re: Need help using function
Previous Message John R Pierce 2009-06-26 17:15:33 Re: Need help using function