Re: Function debugging question - Mailing list pgsql-novice

From Tom Lane
Subject Re: Function debugging question
Date
Msg-id 27271.1118347618@sss.pgh.pa.us
Whole thread Raw
In response to Function debugging question  ("Daniel T. Staal" <DStaal@usa.net>)
List pgsql-novice
"Daniel T. Staal" <DStaal@usa.net> writes:
> I have a function I'm working on that I'm trying to get working, and I
> can't make out what the error message means, so I thought I'd run it
> through here.

> The error I'm getting is:
> ERROR:  syntax error at or near "ABSOLUTE" at character 344
> LINE 13: FETCH ABSOLUTE start FROM cursl INTO r;
>                ^

There is no FETCH ABSOLUTE in plpgsql, sorry.  It has its own FETCH
statement which does not work anything like the main SQL engine's
FETCH.  See
http://www.postgresql.org/docs/8.0/static/plpgsql-cursors.html#PLPGSQL-CURSOR-USING

            regards, tom lane

pgsql-novice by date:

Previous
From: "Celia McInnis"
Date:
Subject: returning multiple values from a plpgsql function?
Next
From: Tom Lane
Date:
Subject: Re: How not to display system tables?