Re: Function debugging question

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Function debugging question
Дата
Msg-id 27271.1118347618@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Function debugging question  ("Daniel T. Staal" <DStaal@usa.net>)
Список 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 по дате отправления:

Предыдущее
От: "Celia McInnis"
Дата:
Сообщение: returning multiple values from a plpgsql function?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: How not to display system tables?