Re: syntax question - Mailing list pgsql-sql

From Josh Berkus
Subject Re: syntax question
Date
Msg-id 200302231507.23831.josh@agliodbs.com
Whole thread Raw
In response to syntax question  ("James Cooper" <jim@luckydigital.com>)
Responses Re: syntax question  (Jeff Eckermann <jeff_eckermann@yahoo.com>)
List pgsql-sql
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


pgsql-sql by date:

Previous
From: Josh Berkus
Date:
Subject: Re: SQL Statements question, why I get errors...
Next
From:
Date:
Subject: Re: SQL Statements question, why I get errors...