Re: XAResource implementation - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: XAResource implementation
Date
Msg-id Pine.BSO.4.64.0711140423050.12400@leary.csoft.net
Whole thread Raw
In response to Re: XAResource implementation  (Heikki Linnakangas <heikki@enterprisedb.com>)
Responses Re: XAResource implementation
List pgsql-jdbc

On Tue, 13 Nov 2007, Heikki Linnakangas wrote:

> Oh, I had forgotten about that. The difference is the close() between the
> getConnection()s.
>
> I started having second doubts about that case you posted in June, so I
> tested what Derby does if you call getConnection() twice, without a close in
> between. You get an error ("Cannot close a connection while a global
> transaction is still active."), so at least they consider it incorrect as
> well.

I'm not super happy that explicit close vs implicit close has different
transactional behavior, but people really shouldn't be writing code like
this, so I've applied your patch to 8.1, 8.2 and HEAD.

Kris Jurka


pgsql-jdbc by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: XAResource implementation
Next
From: joël Winteregg
Date:
Subject: Re: XAResource implementation