Re: [HACKERS] Re: New backend functions? [was Re: JDBC changes for 7.2... some questions...]

Поиск
Список
Период
Сортировка
От Rene Pijlman
Тема Re: [HACKERS] Re: New backend functions? [was Re: JDBC changes for 7.2... some questions...]
Дата
Msg-id 3lmaot0kc4oqeutmh4mk66lsmgsbeljhgc@4ax.com
обсуждение исходный текст
Ответ на Re: New backend functions? [was Re: JDBC changes for 7.2... some questions...]  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [HACKERS] Re: New backend functions? [was Re: JDBC ch  (Ned Wolpert <ned.wolpert@knowledgenet.com>)
Re: [HACKERS] Re: New backend functions? [was Re: JDBC changes for 7.2... some questions...]  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-jdbc
On Thu, 23 Aug 2001 14:44:19 -0400, you wrote:
>Ned Wolpert <ned.wolpert@knowledgenet.com> writes:
>> Should the backend support the function getLastInsertedOID()?
>
>seems doable and reasonable to me: whenever an OID is returned
>to the client in an INSERT or UPDATE command result, also stash it in
>a static variable that can be picked up by this function.

What should the semantics be exactly?

How about the multiple INSERT's i've been reading about on
hackers? ... Only the OID of the last row inserted by the
statement?

How about an UPDATE statement that updates multiple rows?

How about JDBC batchExecute() when it performs multiple
INSERT/UPDATE's? ... Only the OID of the last UPDATE or INSERT
statement in the batch?

How about triggers that insert/update extra rows? ... Only the
OID of the row directly inserted by the client statement?

How about Large Objects? Should inserting or updating a large
object affect getLastInsertedOID()?

I assume this OID would be associated with a client connection.
Is this going to work with client side connection pooling?

How about transaction semantics? INSERT row 1, Commit, INSERT
row 2, Rollback... what should getLastInsertedOID() return? Can
it, with a static variable?

Regards,
René Pijlman

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

Предыдущее
От: Ned Wolpert
Дата:
Сообщение: Re: New backend functions? [was Re: JDBC changes for 7.2.
Следующее
От: Barry Lind
Дата:
Сообщение: patch for JDBC1 build problems