From: Tom Lane <tgl@sss.pgh.pa.us>
To: 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, 01 Apr 2006 00:06:40 -0500
Message-ID: <7738.1143868000@sss.pgh.pa.us> (raw)
In-Reply-To: <442DBBBB.7040409@opencloud.com>
References: <442CFE4E.9000309@mobicomp.com>
<442D0387.3070706@logix-tt.com>
<023601c654c2$b1146410$7801a8c0@zaphod>
<442DBBBB.7040409@opencloud.com>
Oliver Jowett <oliver@opencloud.com> writes:
> Does the specification trump the javadoc, or vice versa?
The spec certainly ought to win, but the fact that the change in the
javadoc is more recent is a pretty clear clue what Sun thinks.
You quote the spec text as
>> 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.
I don't see that as unambiguous. If the autocommit setting is *changed*
then it's clear what must happen, but calling the method with the same
setting that already prevails could easily be considered not to cause
a "change" in the setting.
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.
Is it reasonable to provide an option about how to handle this case?
regards, tom lane
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: 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: <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>
* 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