Re: Order of generated keys during inserts

Поиск
Список
Период
Сортировка
От Dave Cramer
Тема Re: Order of generated keys during inserts
Дата
Msg-id CADK3HH+=3wD5qu86yYKevpfm5BTvuxypd_GW9cATsRfC_1=gNg@mail.gmail.com
обсуждение исходный текст
Ответ на Order of generated keys during inserts  (Andrei Tsibets <andreit@geomotiv.com>)
Список pgsql-jdbc


On Wed, 16 Oct 2019 at 20:26, Andrei Tsibets <andreit@geomotiv.com> wrote:
Hello,

I’m doing multiple inserts into PostgreSQL using executeBatch, and then retrieving generated primary keys via getGeneratedKeys().
The question is: is it save to match inserts with retuned keys by order? Is it guaranteed that generated keys are ordered according
to the order in which commands were added to the batch?

They should be but we make no such guarantee.



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

Предыдущее
От: Andrei Tsibets
Дата:
Сообщение: Order of generated keys during inserts
Следующее
От: Árpád Magosányi
Дата:
Сообщение: [pgjdbc/pgjdbc] 635cc8: fix documentation on generating the pk8 key.close...