RE : [HACKERS] Record unassigned yet

2004-10-01 Thread Johann Robette
Thanks for your answer. In fact, I had a syntax error in my function. Sorry about that! -Message d'origine- De : Tom Lane [mailto:[EMAIL PROTECTED] Envoyé : vendredi 1 octobre 2004 16:47 À : Johann Robette Cc : [EMAIL PROTECTED] Objet : Re: [HACKERS] Record unassigned yet &q

RE : [HACKERS] Record unassigned yet

2004-10-01 Thread Johann Robette
TED] 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 SEL

[HACKERS] Record unassigned yet

2004-10-01 Thread Johann Robette
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