Re: Please help, can't figure out what's wrong with this function... - Mailing list pgsql-sql

From John DeSoi
Subject Re: Please help, can't figure out what's wrong with this function...
Date
Msg-id 0892AC11-818F-4110-8EFC-93C8FC886EC2@pgedit.com
Whole thread Raw
In response to Please help, can't figure out what's wrong with this function...  (Moritz Bayer <moritz.bayer@googlemail.com>)
List pgsql-sql
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



pgsql-sql by date:

Previous
From: Moritz Bayer
Date:
Subject: Please help, can't figure out what's wrong with this function...
Next
From: Tom Lane
Date:
Subject: Re: Please help, can't figure out what's wrong with this function...