Re: plpgsql FOR loop doesn't guard against strange step values
В списке pgsql-hackers по дате отправления:
| От | Andrew Dunstan |
|---|---|
| Тема | Re: plpgsql FOR loop doesn't guard against strange step values |
| Дата | |
| Msg-id | 4699670D.6090106@dunslane.net обсуждение исходный текст |
| Ответ на | Re: plpgsql FOR loop doesn't guard against strange step values (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-hackers |
Tom Lane wrote: > 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. > > > Quite so. I think we should probably require the step to be greater than 0, whether or not we are using REVERSE, and choose to use it as an increment or decrement as appropriate. cheers andrew
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера