From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andreas Tille <tillea@rki.de>
Cc: PostgreSQL SQL <pgsql-sql@hub.org>
Subject: Re: Order by in stored functions
Date: Mon, 04 Sep 2000 12:10:38 -0400
Message-ID: <14161.968083838@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.21.0009040713470.16234-100000@wr-linux02.rki.de>
References: <Pine.LNX.4.21.0009040713470.16234-100000@wr-linux02.rki.de>
Andreas Tille <tillea@rki.de> writes:
> I've got the following error message:
> ERROR: function declared to return varchar returns multiple values in
> final retrieve
This is a bug that has already been fixed in current sources: the check
that makes sure your select produces only one varchar column is
mistakenly counting the hidden IdSort column that's needed to sort by.
I don't know of any good workaround in 7.0, short of patching the
erroneous code. Have you thought about using a view, rather than a
function returning set?
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, tillea@rki.de, pgsql-sql@hub.org
Subject: Re: Order by in stored functions
In-Reply-To: <14161.968083838@sss.pgh.pa.us>
References: <Pine.LNX.4.21.0009040713470.16234-100000@wr-linux02.rki.de> <14161.968083838@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox