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 17A4B32A369 for ; Fri, 1 Oct 2004 10:24:09 +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 16401-08 for ; Fri, 1 Oct 2004 09:24:02 +0000 (GMT) Received: from dns.cegetel-passerelle.com (dns.cegetel-passerelle.com [213.223.187.134]) by svr1.postgresql.org (Postfix) with ESMTP id C6F7A32A366 for ; Fri, 1 Oct 2004 10:24:01 +0100 (BST) Received: from escmail.esc-lille.fr (unknown [213.223.237.160]) by dns.cegetel-passerelle.com (Postfix) with ESMTP id 9392323C51 for ; Fri, 1 Oct 2004 11:23:59 +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 5C13C67C003 for ; Fri, 1 Oct 2004 11:23:08 +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 11:23:58 +0200 From: "Johann Robette" To: Subject: Record unassigned yet Date: Fri, 1 Oct 2004 11:24:39 +0200 Message-ID: <005801c4a798$7ce9c820$a5010a0a@Johann> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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: <415D08F4.7010705@opencloud.com> X-OriginalArrivalTime: 01 Oct 2004 09:23:58.0971 (UTC) FILETIME=[61BAB4B0:01C4A798] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.3 tagged_above=0.0 required=5.0 tests=UPPERCASE_25_50 X-Spam-Level: X-Archive-Number: 200410/11 X-Sequence-Number: 59514 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?