Skip site navigation (1) Skip section navigation (2)

Which version of driver to use ?

From: Csaba Nagy <nagy(at)ecircle-ag(dot)com>
To: Postgres JDBC <pgsql-jdbc(at)postgresql(dot)org>
Subject: Which version of driver to use ?
Date: 2005-06-24 15:33:00
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-jdbc
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 ?



pgsql-jdbc by date

Next:From: Dave CramerDate: 2005-06-24 16:25:57
Subject: Re: Which version of driver to use ?
Previous:From: Akhil SrinivasanDate: 2005-06-24 15:00:33
Subject: Re: Problems with temporary tables created in callable functions

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group