Re: Fw: postgresql experts please help

Поиск
Список
Период
Сортировка
От Michael Schmidt
Тема Re: Fw: postgresql experts please help
Дата
Msg-id BAYC1-PASMTP06B82BA1B0737436579E17A39E0@CEZ.ICE
обсуждение исходный текст
Ответ на Re: Fw: postgresql experts please help  (Kris Jurka <books@ejurka.com>)
Список pgsql-jdbc
Kris Jurka wrote:
>
>
> On Thu, 18 Oct 2007, Michael Schmidt wrote:
>
>> Also, from my read of the documentation and experience, you have to
>> call nextval before you can call currval in the transaction.
>>
>
> Right, but the insert should trigger the default on the serial column to
> call nextval behind the scenes.
>
> Kris Jurka
>
Exactly, because nextval is the default for the sequence.  However, if
you do a transaction in which you don't do an insert, then currval won't
be available.

Michael Schmidt

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

Предыдущее
От: Kris Jurka
Дата:
Сообщение: Re: Fw: postgresql experts please help
Следующее
От: Oliver Jowett
Дата:
Сообщение: Re: Re: [BUGS] 'on insert do instead' rule with a where clause responds 'INSERT 0 0'