Re: Patch for Statement.getGeneratedKeys()

Поиск
Список
Период
Сортировка
От tivvpgsqljdbc@gtech-ua.com
Тема Re: Patch for Statement.getGeneratedKeys()
Дата
Msg-id 478DCEAE.6030900@gtech-ua.com
обсуждение исходный текст
Ответ на Re: Patch for Statement.getGeneratedKeys()  (Ken Johanson <pg-user@kensystem.com>)
Список pgsql-jdbc
BTW: How about next way:
extract table name as it is
parse + describe "select * from tableName".
optionally close unnamed statement (Protocol says it will still be
closed by next unnamed statement).
Read column names from there.
Call insert with returning column names.
It still has round-trip (or two, dunno if parse + describe needs two
round-trips), but it will take any insert statement.

P.S. Sorry if message will come twice - used wrong From: for the first one.




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

Предыдущее
От: Ken Johanson
Дата:
Сообщение: Re: Patch for Statement.getGeneratedKeys()
Следующее
От: "Albretch Mueller"
Дата:
Сообщение: trying to connect to pg from within a local network