Re: move 0 behaviour

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: move 0 behaviour
Дата
Msg-id 4102.1036041407@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: move 0 behaviour  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: move 0 behaviour  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> The following patch makes FETCH/MOVE 0 do nothing, and FETCH LAST move
> to the end.

Do not hack up PerformPortalFetch; put the special case for INT_MAX in
utility.c's FetchStmt code, instead.  As-is, you probably broke other
callers of PerformPortalFetch.

BTW, there's a comment in parsenodes.h that needs to be fixed too:
   int            howMany;        /* amount to fetch ("ALL" --> 0) */
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: 7.2.3 vacuum bug
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: float output precision questions