pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joe Conway <mail@joeconway.com>
To: Derek Hamilton <derek@capweb.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Stored Procedure Error
Date: Mon, 14 Apr 2003 20:04:43 -0700
Message-ID: <3E9B76CB.4080909@joeconway.com> (raw)
In-Reply-To: <000501c302f2$3a3997e0$1b01a8c0@jcaves.net>
References: <000501c302f2$3a3997e0$1b01a8c0@jcaves.net>

Derek Hamilton wrote:
> I'm getting an error attempting to run the code below.  The funny thing is,
> this code worked a few hours ago.
> 
> The error is:
> WARNING: line 53 at return next
> ERROR: Set-valued function called in context that cannot accept a set
> 

You haven't shown us the statement causing the error, but I'd bet you 
need to do:
   select * from testFunction(1);
instead of:
   select testFunction(1);

HTH,

Joe




view thread (3+ messages)  latest in thread

Message-ID: <3E9B76CB.4080909@joeconway.com>
Permalink:  ../3E9B76CB.4080909@joeconway.com/
Also on:    postgresql.org/message-id/3E9B76CB.4080909@joeconway.com

 · 

reply

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-admin@postgresql.org
  Cc: mail@joeconway.com, derek@capweb.com
  Subject: Re: Stored Procedure Error
  In-Reply-To: <3E9B76CB.4080909@joeconway.com>
  References: <000501c302f2$3a3997e0$1b01a8c0@jcaves.net> <3E9B76CB.4080909@joeconway.com>

* 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