X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 3A18D52835 for ; Fri, 24 Jun 2005 13:26:07 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 82301-05 for ; Fri, 24 Jun 2005 16:26:01 +0000 (GMT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id 59FF2528C7 for ; Fri, 24 Jun 2005 13:25:59 -0300 (ADT) Received: (qmail 23124 invoked from network); 24 Jun 2005 16:24:03 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (64.7.143.116) by net2.micro-automation.com with SMTP; 24 Jun 2005 16:24:03 -0000 In-Reply-To: <1119627180.3994.116.camel@coppola.muc.ecircle.de> References: <1119627180.3994.116.camel@coppola.muc.ecircle.de> Mime-Version: 1.0 (Apple Message framework v730) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <99EC30A6-C278-4CB2-9323-A9BFB5D21657@fastcrypt.com> Cc: Postgres JDBC Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: Which version of driver to use ? Date: Fri, 24 Jun 2005 12:25:57 -0400 To: Csaba Nagy X-Mailer: Apple Mail (2.730) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.069 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200506/125 X-Sequence-Number: 13087 Csaba, Yeah, you can force v2 protocol on the 8.0 driver just add ?protocolVersion=2 to the connection url see http://jdbc.postgresql.org/documentation/80/connect.html#connection- parameters for more details re the 74 code : it's in the main server tree for version 7.4 tag is REL7_4_STABLE Dave On 24-Jun-05, at 11:33 AM, Csaba Nagy wrote: > Hi all, > > We have a postgres 7.4 installation with production code running on > it. > The code is written in Java and uses the JDBC driver to access it. > > I recently discovered that the JDBC driver we were using is not > properly > detecting connection problems in the pooled connection > implementation to > report them to our connection pool. However, when giving a go to fix > this, I also discovered that the latest 8.0 driver fixes this problem > (I've checked the code). > > So I've tried to upgrade to the 8.0 driver, but failed: our code is > pretty sloppy with the parameter types of prepared statements, and the > new driver is very strict about them. Eventually we will fix this, but > for the deployed code it's not an option. > > Question: is there a way to make the 8.0 driver less strict ? E.g. we > have quite a few places where numeric fields are set with "setString", > and other things like this. > > Alternatively, have anybody back-patched the connection error > notification fix to the 7.4 driver line ? If not, I could do that > myself, in this case what's the recommended way of getting the latest > 7.4 sources ? Is there actually a CVS branch for it for bug-fixes ? > > Thanks, > Csaba. > > > > ---------------------------(end of > broadcast)--------------------------- > TIP 4: Don't 'kill -9' the postmaster > >