X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id BABC811F8C23 for ; Mon, 3 Apr 2006 06:23:28 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 59547-10 for ; Mon, 3 Apr 2006 06:23:25 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from pmailunix.pontoserver.com (pmailunix.pontoserver.com [69.93.207.50]) by postgresql.org (Postfix) with SMTP id 3B62811F8C21 for ; Mon, 3 Apr 2006 06:23:23 -0300 (ADT) Received: (qmail 20547 invoked from network); 3 Apr 2006 09:43:26 -0000 Received: from unknown (HELO ?192.168.0.200?) (83.240.165.181) by pmailunix.pontoserver.com with SMTP; 3 Apr 2006 09:43:26 -0000 Message-ID: <4430E9B6.6000903@mobicomp.com> Date: Mon, 03 Apr 2006 10:24:06 +0100 From: =?ISO-8859-1?Q?Jo=E3o_Paulo_Ribeiro?= User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Kris Jurka CC: Tom Lane , Oliver Jowett , Michael Paesold , Markus Schaber , pgsql-jdbc@postgresql.org Subject: Re: Behaviour of setAutoCommit may not be completely correct. References: <442CFE4E.9000309@mobicomp.com> <442D0387.3070706@logix-tt.com> <023601c654c2$b1146410$7801a8c0@zaphod> <442DBBBB.7040409@opencloud.com> <7738.1143868000@sss.pgh.pa.us> In-Reply-To: X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.12 required=5 tests=[AWL=0.120] X-Spam-Score: 0.12 X-Spam-Level: X-Archive-Number: 200604/21 X-Sequence-Number: 14955 Ok. I believe you are right. Looks like postgresql is doing the right thing. I'm gonna pass this information to the dods developper team. Many thanks. Best regards. Joćo Paulo Ribeiro Kris Jurka wrote: > > > 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 > > ---------------------------(end of broadcast)--------------------------- > TIP 6: explain analyze is your friend > > -- Joćo Paulo Ribeiro | Senior Software Engineer jp@mobicomp.com PHONE: + 351 253 305 250 FAX : + 351 253 305 250 www.mobicomp.com ________________________________________________________________ About Solutions | Wireless World CONFIDENTIALITY NOTICE: This message, as well as existing attached files, is confidential and intended exclusively for the individual(s) named as addressees. If you are not the intended recipient, you are kindly requested not to make any use whatsoever of its contents and to proceed to the destruction of the message, thereby notifying the sender. DISCLAIMER: The sender of this message can not ensure the security of its electronic transmission and consequently does not accept liability for any fact which may interfere with the integrity of its content.