Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id B93BE2E2D86 for ; Sat, 17 Nov 2007 13:01:23 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 41100-02 for ; Sat, 17 Nov 2007 13:01:19 -0400 (AST) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.191]) by postgresql.org (Postfix) with ESMTP id 5D9E42E2D75 for ; Sat, 17 Nov 2007 13:01:20 -0400 (AST) Received: by fk-out-0910.google.com with SMTP id b27so1303041fka for ; Sat, 17 Nov 2007 09:01:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=gpeozz3x2/CBT8jc7RmvG/4wYi5KPtT8NRx2M5nfR2E=; b=V7PaQwokIPruW6xSjwE7OAXpb/H39EZeNNVst2pwuQvlgBmw0oHpYfYebbgGjo0K1oX56CeVtF89G6fSWsfBIMqyE7BrMdPhNqPGAZ9G9QN9jMaNz+OaY1ik73ejxjWU8CdfrLf3rgCMmhy2awy9lqIMTkOQydxq8XXPWrar/8E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=neLCmhLSKz0Zk4Jgy8FZPwEUOwuwvzuNFcSKbdWmjcNx2A0CsLhOKFY2OG2tEqiTDX7ysHvazld9WdHYRHO5O9ZiO21PBifnG+/FcrhOwBZPlGHUIgSUsCrRzlG9JpmxSDBmWiy5YAMwjX/wigoJODeDOplAjdY1mP6mQnc0sTU= Received: by 10.82.140.20 with SMTP id n20mr4104932bud.1195318878562; Sat, 17 Nov 2007 09:01:18 -0800 (PST) Received: from ?10.0.0.10? ( [83.189.151.213]) by mx.google.com with ESMTPS id g1sm7871405muf.2007.11.17.09.01.15 (version=SSLv3 cipher=RC4-MD5); Sat, 17 Nov 2007 09:01:16 -0800 (PST) Subject: Re: XAResource implementation From: =?ISO-8859-1?Q?jo=EBl?= Winteregg To: Kris Jurka Cc: Heikki Linnakangas , pgsql-jdbc@postgresql.org In-Reply-To: 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> Content-Type: text/plain; charset=ISO-8859-1 Date: Sat, 17 Nov 2007 18:01:14 +0100 Message-Id: <1195318874.5559.50.camel@hatman> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200711/60 X-Sequence-Number: 17815 Hello Kris, I saw your change on CVS (Rev 1.13 of PGXAConnection.java). Do you know when it would be packaged with a new build number ? Would it be postgresql-8.X-507.jdbcX.jar ? Many thanks in advance ! Joël On Wed, 2007-11-14 at 17:11 -0500, Kris Jurka wrote: > > 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 >