From: Josh Berkus <josh@agliodbs.com>
To: James Cooper <jim@luckydigital.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: syntax question
Date: Sun, 23 Feb 2003 15:07:23 -0800
Message-ID: <200302231507.23831.josh@agliodbs.com> (raw)
In-Reply-To: <007701c2db8f$b22b3ea0$c900a8c0@jax>
References: <006401c2db87$fc09be00$c900a8c0@jax>
<200302231452.00484.josh@agliodbs.com>
<007701c2db8f$b22b3ea0$c900a8c0@jax>
James,
> I understand this and my current example actually works.
> My question is I dont need a loop as it only ever returns one row.
This is a current limitation of PL/pgSQL. Until PL/pgSQL is improved by some
enterprising soul, you cannot select the results of a query directly into a
RECORD variable without a loop.
For that matter, you will find that you cannot declare an array variable
inside a PL/pgSQL procedure. This is also on the TODO list.
--
Josh Berkus
Aglio Database Solutions
San Francisco
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: josh@agliodbs.com, jim@luckydigital.com
Subject: Re: syntax question
In-Reply-To: <200302231507.23831.josh@agliodbs.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