Re: [PATCHES] Changes to sequence.c

Поиск
Список
Период
Сортировка
От Vadim B. Mikheev
Тема Re: [PATCHES] Changes to sequence.c
Дата
Msg-id 34FA6603.CE3EB1BC@sable.krasnoyarsk.su
обсуждение исходный текст
Ответ на Changes to sequence.c  ("Billy G. Allie" <Bill.Allie@mug.org>)
Ответы Re: [HACKERS] Re: [PATCHES] Changes to sequence.c  ("Billy G. Allie" <Bill.Allie@mug.org>)
Список pgsql-hackers
Billy G. Allie wrote:
>
> I encountered a problem (bug? feature?) where "select currval('sequence')"
> will generate an error if "select nextval('sequence')" is not executed first.
> The attached patch will change this behaviour by reading the sequence tuple
> and returning the last_value attribute if nextval has not been called on the
> sequence yet.

This is feature :)
1. This is what Oracle does.
2. currval () is described as returning value returned by
   last nextval() in _session_.

Vadim

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

Предыдущее
От: Brook Milligan
Дата:
Сообщение: SOLUTION: undefined symbols in libpgtcl.so
Следующее
От: Tom I Helbekkmo
Дата:
Сообщение: Re: [HACKERS] configure.in patch for --with-tcl