From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | DStaal(at)usa(dot)net |
Cc: | pgsql-novice(at)postgresql(dot)org |
Subject: | Re: Function debugging question |
Date: | 2005-06-09 20:06:58 |
Message-ID: | 27271.1118347618@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
"Daniel T. Staal" <DStaal(at)usa(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2005-06-09 20:33:57 | Re: How not to display system tables? |
Previous Message | Celia McInnis | 2005-06-09 19:42:21 | returning multiple values from a plpgsql function? |