Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 17E182E1D81 for ; Wed, 14 Nov 2007 18:11:28 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 87581-04 for ; Wed, 14 Nov 2007 18:11:25 -0400 (AST) Received: from mail63.csoft.net (leary.csoft.net [205.205.214.5]) by postgresql.org (Postfix) with SMTP id 133EE2E1C3A for ; Wed, 14 Nov 2007 18:11:24 -0400 (AST) Received: (qmail 22170 invoked by uid 1112); 14 Nov 2007 22:11:23 -0000 Date: Wed, 14 Nov 2007 17:11:23 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Heikki Linnakangas cc: =?ISO-8859-1?Q?jo=EBl_Winteregg?= , pgsql-jdbc@postgresql.org, Ludovic Orban Subject: Re: XAResource implementation In-Reply-To: <473A2AB3.2040701@enterprisedb.com> Message-ID: References: <1193736934.5565.40.camel@hatman> <4727420A.4060209@enterprisedb.com> <1193757567.5565.46.camel@hatman> <47275A50.2050201@enterprisedb.com> <47275BA6.3030200@enterprisedb.com> <1194819933.5545.100.camel@hatman> <47382418.604@enterprisedb.com> <1194939010.5505.24.camel@hatman> <4739D5FB.9080202@enterprisedb.com> <473A2AB3.2040701@enterprisedb.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200711/59 X-Sequence-Number: 17814 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