From: Kris Jurka <books@ejurka.com>
To: Nathan Crause <ncrause@uniclear.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: PreparedStatement
Date: Tue, 28 Sep 2004 05:40:53 -0500 (EST)
Message-ID: <Pine.BSO.4.56.0409280530440.15926@leary.csoft.net> (raw)
In-Reply-To: <4158292F.8070503@uniclear.com>
References: <4155A54D.10002@uniclear.com>
<Pine.BSO.4.56.0409251419080.15566@leary.csoft.net>
<4155DD55.3090607@uniclear.com>
<Pine.BSO.4.56.0409261431220.24677@leary.csoft.net>
<4158292F.8070503@uniclear.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: books@ejurka.com, ncrause@uniclear.com
Subject: Re: PreparedStatement
In-Reply-To: <Pine.BSO.4.56.0409280530440.15926@leary.csoft.net>
References: <4155A54D.10002@uniclear.com> <Pine.BSO.4.56.0409251419080.15566@leary.csoft.net> <4155DD55.3090607@uniclear.com> <Pine.BSO.4.56.0409261431220.24677@leary.csoft.net> <4158292F.8070503@uniclear.com> <Pine.BSO.4.56.0409280530440.15926@leary.csoft.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox