X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E3919D869B for ; Mon, 12 Sep 2005 09:47:11 -0300 (ADT) 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 14781-06 for ; Mon, 12 Sep 2005 12:47:07 +0000 (GMT) Received: from a2s4.a2hosting.com (a2s4.a2hosting.com [64.9.205.220]) by svr1.postgresql.org (Postfix) with ESMTP id 32CC8D86E1 for ; Mon, 12 Sep 2005 09:47:06 -0300 (ADT) Received: from user-1120cav.dsl.mindspring.com ([66.32.49.95] helo=[192.168.1.10]) by a2s4.a2hosting.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.52) id 1EEniI-0000BR-0B; Mon, 12 Sep 2005 08:47:10 -0400 In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v733) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <0892AC11-818F-4110-8EFC-93C8FC886EC2@pgedit.com> Cc: pgsql-sql@postgresql.org Content-Transfer-Encoding: 7bit From: John DeSoi Subject: Re: Please help, can't figure out what's wrong with this function... Date: Mon, 12 Sep 2005 08:46:49 -0400 To: moritz.bayer@googlemail.com X-Mailer: Apple Mail (2.733) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - a2s4.a2hosting.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - pgedit.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.008 required=5 tests=[AWL=0.008] X-Spam-Level: X-Archive-Number: 200509/129 X-Sequence-Number: 22676 On Sep 12, 2005, at 8:14 AM, Moritz Bayer wrote: > I get the following error: > ERROR: missing .. at end of SQL expression it looks like your for loop is being interpreted as the integer variant, e.g. for i in 1..10 loop > CREATE TYPE "public"."ty_stadtlandflussentry" AS ( > DECLARE objReturn ty_stadtlandflussentry; Maybe it needs to be: declare objReturn "public"."ty_stadtlandflussentry"%rowtype; John DeSoi, Ph.D. http://pgedit.com/ Power Tools for PostgreSQL