pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Johann Robette <jrobette@onyme.com>
To: 'Russell Smith' <mr-russ@pws.com.au>
To: pgsql-hackers@postgresql.org
Subject: RE : Record unassigned yet
Date: Fri, 1 Oct 2004 13:28:33 +0200
Message-ID: <005f01c4a7a9$c8b80030$a5010a0a@Johann> (raw)
In-Reply-To: <200410012119.51996.mr-russ@pws.com.au>

Oh sorry about that!
No, I was alright in the syntax. Both are defined as current.
I can't find where the problem lies...


-----Message d'origine-----
De : pgsql-hackers-owner@postgresql.org
[mailto:pgsql-hackers-owner@postgresql.org] De la part de Russell Smith
Envoyé : vendredi 1 octobre 2004 13:20
À : pgsql-hackers@postgresql.org
Objet : Re: [HACKERS] Record unassigned yet

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
> 
> 

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if
your
      joining column's datatypes do not match






view thread (3+ messages)  latest in thread

Message-ID: <005f01c4a7a9$c8b80030$a5010a0a@Johann>
Permalink:  ../005f01c4a7a9$c8b80030$a5010a0a@Johann/
Also on:    postgresql.org/message-id/005f01c4a7a9$c8b80030$a5010a0a@Johann

 · 

reply

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, mr-russ@pws.com.au, pgsql-hackers@postgresql.org
  Subject: Re: Record unassigned yet
  In-Reply-To: <005f01c4a7a9$c8b80030$a5010a0a@Johann>
  References: <200410012119.51996.mr-russ@pws.com.au> <005f01c4a7a9$c8b80030$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