FUNCTIONS returning a record? - Mailing list pgsql-hackers

From Pam Withnall
Subject FUNCTIONS returning a record?
Date
Msg-id D10ACC8031A3FD47A7860D3590D6A1D1F597@zoom-ads.zoomnet.zoom.com.au
Whole thread Raw
List pgsql-hackers
HI,
I want to return a record from a FUNCTION in plpgsql procedural language.
There are very few examples to go by.
It doesn't accept RETURN RECORD.
I've tried
making a record in the declare section and returning OPAQUE.

TYPE temp IS RECORD
(id int4,
name varchar(50),
);
It gives the error java.sql.SQLException: ERROR:  typeidTypeRelid: Invalid
type - oid = 0
does someone have the answer?
Thanks, Pam


pgsql-hackers by date:

Previous
From: Alex Pilosov
Date:
Subject: RE: relation ### modified while in use
Next
From: The Hermit Hacker
Date:
Subject: Re: More cvs branch problems