| From: | Russell Smith <mr-russ(at)pws(dot)com(dot)au> |
|---|---|
| To: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: Record unassigned yet |
| Date: | 2004-10-01 11:19:51 |
| Message-ID: | 200410012119.51996.mr-russ@pws.com.au |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers pgsql-jdbc |
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
>
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Johann Robette | 2004-10-01 11:28:33 | RE : Record unassigned yet |
| Previous Message | Johann Robette | 2004-10-01 09:24:39 | Record unassigned yet |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Johann Robette | 2004-10-01 11:28:33 | RE : Record unassigned yet |
| Previous Message | Johann Robette | 2004-10-01 09:24:39 | Record unassigned yet |