From: Sean Davis <sdavis2@mail.nih.gov>
To: Otto Blomqvist <o.blomqvist@secomintl.com>
Cc: pgsql-general@postgresql.org
Cc: pgsql-sql@postgresql.org
Subject: Re: [SQL] Problems with Set Returning Functions (SRFs)
Date: Mon, 11 Apr 2005 06:07:24 -0400
Message-ID: <5ad7366b9228273de19f4173aa30c2ba@mail.nih.gov> (raw)
In-Reply-To: <d31b80$1qit$1@news.hub.org>
References: <d31b80$1qit$1@news.hub.org>
On Apr 6, 2005, at 2:53 PM, Otto Blomqvist wrote:
>
> secom=# select f1, f2, f3 from testpassbyval(1, (Select number1 from
> test));
> ERROR: more than one row returned by a subquery used as an expression
>
> This is where I fail. Am I even on the right path here ? Writing the
> actual
> parsing function will be easy once I have a working concept.
>
How about (untested):
select f1, f2, f3 from (
select testpassbyval(1,(
select number1 from test)
)
) a;
Sean
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: sdavis2@mail.nih.gov, o.blomqvist@secomintl.com, pgsql-general@postgresql.org
Subject: Re: [SQL] Problems with Set Returning Functions (SRFs)
In-Reply-To: <5ad7366b9228273de19f4173aa30c2ba@mail.nih.gov>
* 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