From: Chris Bowlby <excalibur@hub.org>
To: Joe Conway <mail@joeconway.com>
Cc: chris@hub.org
Cc: pgsql-sql@postgresql.org
Subject: Re: Problem with plpgsql function
Date: Thu, 15 Jan 2004 15:06:01 -0400
Message-ID: <1074193560.33449.13.camel@morpheus.hub.org> (raw)
In-Reply-To: <4006E059.7030802@joeconway.com>
References: <1074191967.33449.11.camel@morpheus.hub.org>
<4006E059.7030802@joeconway.com>
Ack, I knew it was something small, I was under the impression that I
had been using that, it just took someone to point it out to make me
look again :>... thanks..
On Thu, 2004-01-15 at 14:47, Joe Conway wrote:
> Chris Bowlby wrote:
> > select get_account_info('test.com');
> >
> > I get this error:
> >
> > ERROR: set-valued function called in context that cannot accept a set
>
> This is the "classic" SRF error -- you need to use an SRF like a
> relation in the FROM clause, so do this instead:
>
> select * FROM get_account_info('test.com');
>
> HTH,
>
> Joe
--
Chris Bowlby <excalibur@hub.org>
Hub.Org Networking Services
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: excalibur@hub.org, mail@joeconway.com, chris@hub.org
Subject: Re: Problem with plpgsql function
In-Reply-To: <1074193560.33449.13.camel@morpheus.hub.org>
* 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