Search Postgresql Archives

Re: Need help using function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxx>
To: "Bob Pawley" <rjpawley@xxxxxxx>; <pgsql-general@xxxxxxxxxxxxxx>
Sent: Friday, June 26, 2009 10:15 AM
Subject: Re:  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;




--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux