FUNCTIONS returning a record?

From: Pam Withnall <Pamw(at)zoom(dot)com(dot)au>
To: "'pgsql-hackers(at)postgresql(dot)org'" <pgsql-hackers(at)postgresql(dot)org>
Subject: FUNCTIONS returning a record?
Date: 2000-11-03 00:08:45
Message-ID: D10ACC8031A3FD47A7860D3590D6A1D1F597@zoom-ads.zoomnet.zoom.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-hackers by date

  From Date Subject
Next Message The Hermit Hacker 2000-11-03 00:21:21 Re: More cvs branch problems
Previous Message Alex Pilosov 2000-11-02 23:03:54 RE: relation ### modified while in use