Re: Retrieving last InsertedID : INSERT... RETURNING safe ?

Поиск
Список
Период
Сортировка
От Guillaume Cottenceau
Тема Re: Retrieving last InsertedID : INSERT... RETURNING safe ?
Дата
Msg-id 87ir0jrg47.fsf@mnc.ch
обсуждение исходный текст
Ответ на Re: Retrieving last InsertedID : INSERT... RETURNING safe ?  (Dave Cramer <davec@fastcrypt.com>)
Список pgsql-jdbc
Dave Cramer <davec 'at' fastcrypt.com> writes:

>> Well, that other solution is dangerous in case multiple inserts
>> to that table are done concurrently; a quite common usage pattern
>> with java web applications handling multiple HTTP requests with
>> concurrent java threads..
>>
> No it is not dangerous. It is the right way to do it. There is
> absolutely no danger in using currval in this manner.

Doh! Sorry for the noise. I should have double checked,
especially because Heikki is really not the kind of guy to talk
bullshit :/

--
Guillaume Cottenceau

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

Предыдущее
От: Dave Cramer
Дата:
Сообщение: Re: Retrieving last InsertedID : INSERT... RETURNING safe ?
Следующее
От: Paul Tomblin
Дата:
Сообщение: Re: Retrieving last InsertedID : INSERT... RETURNING safe ?