From: Kris Jurka <books@ejurka.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Oliver Jowett <oliver@opencloud.com>
Cc: Michael Paesold <mpaesold@gmx.at>
Cc: Markus Schaber <schabi@logix-tt.com>
Cc: João Paulo Ribeiro <jp@mobicomp.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Behaviour of setAutoCommit may not be completely correct.
Date: Sat, 1 Apr 2006 03:07:11 -0500 (EST)
Message-ID: <Pine.BSO.4.63.0604010303390.13853@leary.csoft.net> (raw)
In-Reply-To: <7738.1143868000@sss.pgh.pa.us>
References: <442CFE4E.9000309@mobicomp.com>
<442D0387.3070706@logix-tt.com>
<023601c654c2$b1146410$7801a8c0@zaphod>
<442DBBBB.7040409@opencloud.com>
<7738.1143868000@sss.pgh.pa.us>
On Sat, 1 Apr 2006, Tom Lane wrote:
> It looks to me like Sun is trying to clarify their reading of that
> detail with the javadoc change. It's a crummy way to handle it; they
> should have updated the spec. But I'd say the handwriting is on the
> wall about what the next spec version will say.
>
The JDBC 4.0 public draft spec says:
The default is for auto-commit mode to be enabled when the Connection
object is created. If the value of auto-commit is changed in the middle of
a transaction, the current transaction is committed. If setAutoCommit is
called and the value for auto-commit is not changed from its current
value, it is treated as a no-op.
The JDK1.6 beta2 javadoc confirms this:
NOTE: If this method is called during a transaction and the auto-commit
mode is changed, the transaction is committed. If setAutoCommit is called
and the auto-commit mode is not changed, the call is a no-op.
So I think we're fine.
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, tgl@sss.pgh.pa.us, oliver@opencloud.com, mpaesold@gmx.at, schabi@logix-tt.com, jp@mobicomp.com
Subject: Re: Behaviour of setAutoCommit may not be completely correct.
In-Reply-To: <Pine.BSO.4.63.0604010303390.13853@leary.csoft.net>
References: <442CFE4E.9000309@mobicomp.com> <442D0387.3070706@logix-tt.com> <023601c654c2$b1146410$7801a8c0@zaphod> <442DBBBB.7040409@opencloud.com> <7738.1143868000@sss.pgh.pa.us> <Pine.BSO.4.63.0604010303390.13853@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