X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 6E3549F9EEB for ; Tue, 23 May 2006 03:58:16 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 16236-01 for ; Tue, 23 May 2006 03:58:06 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.234]) by postgresql.org (Postfix) with ESMTP id B18969F9CAA for ; Tue, 23 May 2006 03:58:06 -0300 (ADT) Received: by wr-out-0506.google.com with SMTP id i3so1178253wra for ; Mon, 22 May 2006 23:58:05 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:from:to:cc:references:subject:date:mime-version:content-type:content-transfer-encoding:x-priority:x-msmail-priority:x-mailer:x-mimeole:sender; b=CYQJGq47YSWIHmq1xWQDfGVw5+DJxumfNfYjCuEVZ0hCe+frAhDFfHX1+oZFPztr/s5LMeR1lOV7Q6aJMHFV4oKX7bg6XTTS4IgW06QMOUjNNO13PdeNmSeHCpeqLoFAsVsSL3ib5jfyAA3GxJwaQJOnzb1j8P9TTiCCIStzI1g= Received: by 10.54.156.6 with SMTP id d6mr4718527wre; Mon, 22 May 2006 23:58:05 -0700 (PDT) Received: from KALIO ( [69.171.66.118]) by mx.gmail.com with ESMTP id g5sm4683021wra.2006.05.22.23.58.04; Mon, 22 May 2006 23:58:04 -0700 (PDT) Message-ID: <018c01c67e36$3dac65c0$c002a8c0@KALIO> From: "Chris Smith" To: , "Kris Jurka" Cc: References: <200605191009.k4JA9OjS042465@wwwmaster.postgresql.org> <1148364874.4088.7.camel@sunonehpux1.india.sun.com> Subject: Re: [BUGS] BUG #2444: XA Connections given by posgres driver has Date: Tue, 23 May 2006 00:58:03 -0600 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/106 X-Sequence-Number: 15234 Jagadish Prasath Ramu wrote: > In this case, I get a connection (XAConnection) from the datasource > and do a query. This connection's auto-commit value is false. > According to the JDBC 3.0 Specification, auto-commit need to be true > when created. [ my case ] > Only when the connection is taking part in a transaction, setting > auto-commit value is not allowed. > > Since I am using the connection without any transaction context, > auto-commit need to be true in this case according to the > specification. The auto-commit mode is specified to be ignored for any connection that is participating in a non-local transaction. Hence, it doesn't matter whether auto-commit is true or false in the situation you're talking about. The behavior is always as if auto-commit is false. It does seem, though, that the flag should be set to false in order to comply by-the-letter, as useless as that is. -- www.designacourse.com The Easiest Way To Train Anyone... Anywhere. Chris Smith - Lead Software Developer/Technical Trainer MindIQ Corporation