pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris Smith <cdsmith@twu.net>
To: Jagadish.Ramu@Sun.COM
To: Kris Jurka <books@ejurka.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: [BUGS] BUG #2444: XA Connections given by posgres	driver has
Date: Tue, 23 May 2006 00:58:03 -0600
Message-ID: <018c01c67e36$3dac65c0$c002a8c0@KALIO> (raw)
References: <200605191009.k4JA9OjS042465@wwwmaster.postgresql.org>
	<Pine.BSO.4.63.0605221510340.26500@leary2.csoft.net>
	<1148364874.4088.7.camel@sunonehpux1.india.sun.com>

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 




view thread (4+ messages)

Message-ID: <018c01c67e36$3dac65c0$c002a8c0@KALIO>
Permalink:  ../018c01c67e36$3dac65c0$c002a8c0@KALIO/
Also on:    postgresql.org/message-id/018c01c67e36$3dac65c0$c002a8c0@KALIO

 · 

reply

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: cdsmith@twu.net, Jagadish.Ramu@Sun.COM, books@ejurka.com
  Subject: Re: [BUGS] BUG #2444: XA Connections given by posgres	driver has
  In-Reply-To: <018c01c67e36$3dac65c0$c002a8c0@KALIO>
  References: <200605191009.k4JA9OjS042465@wwwmaster.postgresql.org> <Pine.BSO.4.63.0605221510340.26500@leary2.csoft.net> <1148364874.4088.7.camel@sunonehpux1.india.sun.com> <018c01c67e36$3dac65c0$c002a8c0@KALIO>

* 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