Dennis Bjorklund writes:
On Tue, 5 Apr 2005, Tom Lane wrote:
CREATE FUNCTION sum_n_product(x int, y int, OUT sum int, OUT prod int) AS $$
BEGIN
sum := x + y;
prod := x * y;
RETURN;
END;
$$ LANGUAGE plpgsql;
The above code example do not have any RETURNS clause, does that mean that
it defaults to RETURNS void?
No, it effectively "RETURNS record", where the particular record type is
implied by the set of output parameters. See my previous proposal.

regards, tom lane

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 4 of 9 | next ›
Discussion Overview
grouppgsql-hackers @
categoriespostgresql
postedApr 5, '05 at 6:28a
activeApr 5, '05 at 3:51p
posts9
users6
websitepostgresql.org...
irc#postgresql

People

Translate

site design / logo © 2021 Grokbase