Re: [HACKERS] Re: [PATCHES] Changes to sequence.c

Поиск
Список
Период
Сортировка
От Vadim B. Mikheev
Тема Re: [HACKERS] Re: [PATCHES] Changes to sequence.c
Дата
Msg-id 34FFEE9E.18EA5CDF@sable.krasnoyarsk.su
обсуждение исходный текст
Ответ на Re: [HACKERS] Re: [PATCHES] Changes to sequence.c  ("Billy G. Allie" <Bill.Allie@mug.org>)
Список pgsql-hackers
Billy G. Allie wrote:
>
> Vadim B. Mikheev wrote:
> >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.
> >
> >This is feature :)
> >1. This is what Oracle does.
> >2. currval () is described as returning value returned by
> >   last nextval() in _session_.
> >
> >Vadim
> >
> Does this mean we should not modify this behavior because "this is what Oracle
> does"?  I can envision where using currval() before nextval() can be useful.

Actually, what you are proposing was initial behaviour of currval().
This was changed to be more consistent with 1. & 2. (note - not only 1.,
but 2. also).

But personally I haven't objection against changing this again.
Men, vote pls!

Vadim

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

Предыдущее
От: Mattias Kregert
Дата:
Сообщение: Re: [HACKERS] PostgreSQL and DBI/DBD...vs Pg.pm
Следующее
От: Zeugswetter Andreas
Дата:
Сообщение: AW: [HACKERS] Re: [PATCHES] Changes to sequence.c