From: Johann Robette <jrobette@onyme.com>
To: pgsql-hackers@postgresql.org
Subject: Record unassigned yet
Date: Fri, 1 Oct 2004 11:24:39 +0200
Message-ID: <005801c4a798$7ce9c820$a5010a0a@Johann> (raw)
In-Reply-To: <415D08F4.7010705@opencloud.com>
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;
...
When I call the function, I get the error :
ERROR: record " current " is unassigned yet
Any idea?
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: jrobette@onyme.com, pgsql-hackers@postgresql.org
Subject: Re: Record unassigned yet
In-Reply-To: <005801c4a798$7ce9c820$a5010a0a@Johann>
References: <415D08F4.7010705@opencloud.com> <005801c4a798$7ce9c820$a5010a0a@Johann>
* 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