From: | Matthias(dot)Pitzl(at)izb(dot)de |
---|---|
To: | rikard(dot)pavelic(at)zg(dot)htnet(dot)hr, shoaibmir(at)gmail(dot)com, pgsql-general(at)postgresql(dot)org |
Subject: | Re: returning parameters from function |
Date: | 2006-12-12 14:08:35 |
Message-ID: | 11EC9A592C31034C88965C87AF18C2A70CFD49@m0000s61 |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
You have to call the function in the following form:
SELECT * FROM get_test_data(1) AS (field1 type, field2 type, ...)
In words, you have to tell the database how the data returned by the
function has to be interpreted.
Greetings,
Matthias
> -----Original Message-----
> From: pgsql-general-owner(at)postgresql(dot)org
> [mailto:pgsql-general-owner(at)postgresql(dot)org] On Behalf Of
> Rikard Pavelic
> Sent: Tuesday, December 12, 2006 3:06 PM
> To: Shoaib Mir; pgsql-general(at)postgresql(dot)org
> Subject: Re: [GENERAL] returning parameters from function
>
> This doesn't work. ;(
> I get ERROR: a column definition list is required for functions
> returning "record"
> SQL state: 42601
> when running this function
>
> Regards,
> Rikard
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org
> so that your
> message can get through to the mailing list cleanly
>
From | Date | Subject | |
---|---|---|---|
Next Message | Richard Huxton | 2006-12-12 14:39:08 | Re: returning parameters from function |
Previous Message | Rikard Pavelic | 2006-12-12 14:06:29 | Re: returning parameters from function |