Re: PreparedStatement

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: PreparedStatement
Дата
Msg-id Pine.BSO.4.56.0409280530440.15926@leary.csoft.net
обсуждение исходный текст
Ответ на PreparedStatement  (Nathan Crause <ncrause@uniclear.com>)
Ответы Re: PreparedStatement
Список pgsql-jdbc
On Mon, 27 Sep 2004, Nathan Crause wrote:

> I'm wondering if there is some way to make a trigger on the sequences
> themselves. Create some sort of session-specific temporary table which
> contains records of all auto-generated sequences in that session, and
> then figure out some way to return only the portion which was created by
> the last INSERT (perhaps something as simple as flushing the table after
> each resultset it returned to the connection).
>

This looks like an application kind of fix, not a library solution.  A
JDBC driver can't go around creating tables and triggers and other things.

It might be worthwhile to investigate how other JDBC drivers handle this.
So far I've only looked at MySQL, but checking MaxDB and Firebird's driver
source would be revealing.  Checking commercial drivers would be good too,
but I'm not sure how legal that is.

Kris Jurka

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

Предыдущее
От: Kris Jurka
Дата:
Сообщение: Re: PreparedStatement
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: PreparedStatement