From: Russell Smith <mr-russ@pws.com.au>
To: pgsql-hackers@postgresql.org
Subject: Re: Record unassigned yet
Date: Fri, 1 Oct 2004 21:19:51 +1000
Message-ID: <200410012119.51996.mr-russ@pws.com.au> (raw)
In-Reply-To: <005801c4a798$7ce9c820$a5010a0a@Johann>
References: <005801c4a798$7ce9c820$a5010a0a@Johann>
On Fri, 1 Oct 2004 07:24 pm, Johann Robette wrote:
> Hello,
>
> I'm experiencing a strange problem. Here it is :
> I've created a function with a FOR loop.
>
> DECLARE
> Current RECORD;
> BEGIN
> FOR current IN SELECT * FROM employees LOOP
> Tmp := current.id;
> END LOOP;
> ...
current != Current ?
>
> When I call the function, I get the error :
> ERROR: record " current " is unassigned yet
>
> Any idea?
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faqs/FAQ.html
>
>
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: mr-russ@pws.com.au, pgsql-hackers@postgresql.org
Subject: Re: Record unassigned yet
In-Reply-To: <200410012119.51996.mr-russ@pws.com.au>
References: <005801c4a798$7ce9c820$a5010a0a@Johann> <200410012119.51996.mr-russ@pws.com.au>
* 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