pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Csaba Nagy <nagy@ecircle-ag.com>
To: Postgres JDBC <pgsql-jdbc@postgresql.org>
Subject: Which version of driver to use ?
Date: Fri, 24 Jun 2005 17:33:00 +0200
Message-ID: <1119627180.3994.116.camel@coppola.muc.ecircle.de> (raw)

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.





view thread (4+ messages)  latest in thread

Message-ID: <1119627180.3994.116.camel@coppola.muc.ecircle.de>
Permalink:  ../1119627180.3994.116.camel@coppola.muc.ecircle.de/
Also on:    postgresql.org/message-id/1119627180.3994.116.camel@coppola.muc.ecircle.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: nagy@ecircle-ag.com
  Subject: Re: Which version of driver to use ?
  In-Reply-To: <1119627180.3994.116.camel@coppola.muc.ecircle.de>
  References: <1119627180.3994.116.camel@coppola.muc.ecircle.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox