pg.ddx.io pgsql-sql@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Mendola Gaetano <mendola@bigfoot.com>
To: Mr Weinbach, Larry <larryweinbach@yahoo.com>
To: pgsql-sql@postgresql.org
Subject: Re: Using a RETURN NEXT
Date: Mon, 9 Jun 2003 13:22:25 +0200
Message-ID: <006401c32e79$68424580$10d4a8c0@mm.eutelsat.org> (raw)
References: <20030606221435.44876.qmail@web12906.mail.yahoo.com>
From: "Mr Weinbach, Larry" <larryweinbach@yahoo.com>
> But at execution time I am getting thi error :
>
> WARNING: Error occurred while executing PL/pgSQL
> function word_case
> WARNING: line 5 at return next
> ERROR: Set-valued function called in context that
> cannot accept a set
>
> I also tried using my own type defined but I got the
> same error.
>
> Any hint or idea will be appreciated ...
I guess that you are calling that function in this way:
#select word_case();
that function is a "table function" so you should use it like a table:
#select * from word_case();
Regards
Gaetano Mendola
view thread (4+ messages) latest in thread
Message-ID: <006401c32e79$68424580$10d4a8c0@mm.eutelsat.org> Permalink: ../006401c32e79$68424580$10d4a8c0@mm.eutelsat.org/ Also on: postgresql.org/message-id/006401c32e79$68424580$10d4a8c0@mm.eutelsat.org ·
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 using the --to and --cc options: reply via email To: pgsql-sql@postgresql.org Cc: mendola@bigfoot.com, larryweinbach@yahoo.com Subject: Re: Using a RETURN NEXT In-Reply-To: <006401c32e79$68424580$10d4a8c0@mm.eutelsat.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