Re: [BUGS] BUG #2444: XA Connections given by posgres driver has

From: "Chris Smith" <cdsmith(at)twu(dot)net>
To: <Jagadish(dot)Ramu(at)Sun(dot)COM>, "Kris Jurka" <books(at)ejurka(dot)com>
Cc: <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: [BUGS] BUG #2444: XA Connections given by posgres driver has
Date: 2006-05-23 06:58:03
Message-ID: 018c01c67e36$3dac65c0$c002a8c0@KALIO
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-jdbc

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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2006-05-23 15:50:17 Re: BUG #2451: Short column names return no values within function
Previous Message Jagadish Prasath Ramu 2006-05-23 06:14:34 Re: [BUGS] BUG #2444: XA Connections given by posgres driver has

Browse pgsql-jdbc by date

  From Date Subject
Next Message Glenn Holmer 2006-05-23 13:25:09 Re: DatabaseMetaData
Previous Message Jagadish Prasath Ramu 2006-05-23 06:14:34 Re: [BUGS] BUG #2444: XA Connections given by posgres driver has