X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 3AD9147580B for ; Mon, 14 Apr 2003 23:05:08 -0400 (EDT) Received: from joeconway.com (unknown [66.146.172.86]) by postgresql.org (Postfix) with ESMTP id 0CE4E474E42 for ; Mon, 14 Apr 2003 23:05:03 -0400 (EDT) Received: from [192.168.5.3] (account jconway HELO joeconway.com) by joeconway.com (CommuniGate Pro SMTP 4.0.4) with ESMTP-TLS id 1714418; Mon, 14 Apr 2003 20:40:25 -0700 Message-ID: <3E9B76CB.4080909@joeconway.com> Date: Mon, 14 Apr 2003 20:04:43 -0700 From: Joe Conway User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1) Gecko/20021130 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Derek Hamilton Cc: pgsql-admin@postgresql.org Subject: Re: Stored Procedure Error References: <000501c302f2$3a3997e0$1b01a8c0@jcaves.net> In-Reply-To: <000501c302f2$3a3997e0$1b01a8c0@jcaves.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-38.8 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_MOZILLA_UA autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/225 X-Sequence-Number: 8380 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