error in oracle to plpgsql documentation ?

Поиск
Список
Период
Сортировка
От Marc Cousin
Тема error in oracle to plpgsql documentation ?
Дата
Msg-id 201007211441.17678.cousinmarc@gmail.com
обсуждение исходный текст
Ответы Re: error in oracle to plpgsql documentation ?  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Список pgsql-docs
Hi,

A user had a syntax problem with a cursor declaration. After a bit of digging,
the code he used came directly from the documentation :

DECLARE
    CURSOR referrer_keys IS
        SELECT * FROM cs_referrer_keys
        ORDER BY try_order;
    func_body text;
    func_cmd text;

I guess it should be

DECLARE
    referrer_keys CURSOR IS
        SELECT * FROM cs_referrer_keys
        ORDER BY try_order;
    func_body text;
    func_cmd text;

(syntax is inverted in Oracle, so I guess it is a typo ?)

If I'm right, a patch is attached (the code works with the correction)



Вложения

В списке pgsql-docs по дате отправления:

Предыдущее
От: Daniele Varrazzo
Дата:
Сообщение: Re: Please provide stable target anchors
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: error in oracle to plpgsql documentation ?