Re: driver beta release - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: driver beta release
Date
Msg-id Pine.BSO.4.56.0411091146460.21184@leary.csoft.net
Whole thread Raw
In response to Re: driver beta release  (Hunter Hillegas <lists@lastonepicked.com>)
Responses Re: driver beta release
List pgsql-jdbc

On Tue, 9 Nov 2004, Hunter Hillegas wrote:

> I dropped this new driver in and ran it with Jboss against my 7.4.5
> server...
>
> One of our legacy apps seems to have some 'suspicious' coding practices
> going on... The keys in the DB are int4 but the app seems to use Strings
> everywhere in JDBC...
>
> The old driver sent along the string and it went into the query. The new
> driver seems to be more sensitive to the correct types being used...
>
> Retrofitting the old app will take some time and we'd like to start testing
> 8.0 and the new drivers now. Any way to ask the driver to revert to the old
> behavior for certain applications?
>

You can add ?protocolVersion=2 to the JDBC URL.  Which will make it use
the older un-parameterized method of sending queries.

Kris Jurka

pgsql-jdbc by date:

Previous
From: Hunter Hillegas
Date:
Subject: Re: driver beta release
Next
From: Markus Schaber
Date:
Subject: Re: persistence of java objects