Re: plpgsql FOR loop doesn't guard against strange step values

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: plpgsql FOR loop doesn't guard against strange step values
Дата
Msg-id 26690.1184457848@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: plpgsql FOR loop doesn't guard against strange step values  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: plpgsql FOR loop doesn't guard against strange step values
Список pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> I suspect we have a significant incompatibility with PLSQL in this area. 

Ugh.  Google seems to confirm your thought that Oracle expects

>   FOR i IN REVERSE 1..10 LOOP

which is not the way we are doing it.  Not sure if it's worth trying to
fix this --- the conversion pain would be significant.  I agree we gotta
document it, however; will go do so.

Note that in the Oracle worldview it still wouldn't be sensible to use
a negative step.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: plpgsql and qualified variable names
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: plpgsql FOR loop doesn't guard against strange step values