X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 4556B32A5EA for ; Fri, 1 Oct 2004 15:50:48 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 50136-01 for ; Fri, 1 Oct 2004 14:50:39 +0000 (GMT) Received: from dns.cegetel-passerelle.com (dns.cegetel-passerelle.com [213.223.187.134]) by svr1.postgresql.org (Postfix) with ESMTP id 0CF4132A2AC for ; Fri, 1 Oct 2004 15:50:42 +0100 (BST) Received: from escmail.esc-lille.fr (unknown [213.223.237.160]) by dns.cegetel-passerelle.com (Postfix) with ESMTP id 32AFD244EE for ; Fri, 1 Oct 2004 16:50:42 +0200 (CEST) Received: from srvmail.esc-lille.fr (srvmail.esc-lille.fr [10.1.10.5]) by escmail.esc-lille.fr (Postfix) with ESMTP id ACA2C67C0DF for ; Fri, 1 Oct 2004 16:49:43 +0200 (CEST) Received: from Johann ([10.10.1.165]) by srvmail.esc-lille.fr with Microsoft SMTPSVC(5.0.2195.6713); Fri, 1 Oct 2004 16:50:34 +0200 From: "Johann Robette" To: "'Tom Lane'" Cc: Subject: RE : Record unassigned yet Date: Fri, 1 Oct 2004 16:51:14 +0200 Message-ID: <006a01c4a7c6$1c6f0ea0$a5010a0a@Johann> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 In-Reply-To: <9449.1096642025@sss.pgh.pa.us> X-OriginalArrivalTime: 01 Oct 2004 14:50:34.0315 (UTC) FILETIME=[0176E9B0:01C4A7C6] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/17 X-Sequence-Number: 59520 Thanks for your answer. In fact, I had a syntax error in my function. Sorry about that! -----Message d'origine----- De=A0: Tom Lane [mailto:tgl@sss.pgh.pa.us]=20 Envoy=E9=A0: vendredi 1 octobre 2004 16:47 =C0=A0: Johann Robette Cc=A0: pgsql-hackers@postgresql.org Objet=A0: Re: [HACKERS] Record unassigned yet=20 "Johann Robette" writes: > I've created a function with a FOR loop. > DECLARE > Current RECORD; > BEGIN > FOR current IN SELECT * FROM employees LOOP > Tmp :=3D current.id; > END LOOP; > ... > When I call the function, I get the error : > ERROR: record " current " is unassigned yet > Any idea? What you showed us looks fine, therefore the problem is in something you didn't show us. regards, tom lane