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 93D885285C for ; Fri, 24 Jun 2005 12:33:13 -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 71538-03 for ; Fri, 24 Jun 2005 15:33:04 +0000 (GMT) Received: from mail.ecircle.de (mail.ecircle.de [195.140.186.200]) by svr1.postgresql.org (Postfix) with ESMTP id AD59452822 for ; Fri, 24 Jun 2005 12:33:03 -0300 (ADT) Received: from [192.168.1.110] (unknown [192.168.1.110]) by mail.ecircle.de (READY) with ESMTP id 5AEA911DD0D for ; Fri, 24 Jun 2005 17:33:01 +0200 (CEST) Subject: Which version of driver to use ? From: Csaba Nagy To: Postgres JDBC Content-Type: text/plain Message-Id: <1119627180.3994.116.camel@coppola.muc.ecircle.de> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Fri, 24 Jun 2005 17:33:00 +0200 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.018 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200506/123 X-Sequence-Number: 13085 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.