Re: syntax question

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: "James Cooper" <jim(at)luckydigital(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: syntax question
Date: 2003-02-23 23:07:23
Message-ID: 200302231507.23831.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message plist 2003-02-23 23:13:21 Re: SQL Statements question, why I get errors...
Previous Message Josh Berkus 2003-02-23 22:57:47 Re: SQL Statements question, why I get errors...