Re: JDBC getDatabaseProductVersion() patch - Mailing list pgsql-interfaces

From Peter Mount
Subject Re: JDBC getDatabaseProductVersion() patch
Date
Msg-id Pine.LNX.4.21.0009140225540.351-100000@maidast.demon.co.uk
Whole thread Raw
In response to JDBC getDatabaseProductVersion() patch  (Anders Bengtsson <anders@lecando.com>)
List pgsql-interfaces

On Wed, 13 Sep 2000, Anders Bengtsson wrote:

> Hello,
> I don't know if this list is the correct way to contribute patches, but
> here we go:
> 
> I've implemented getDatabaseProductVersion() for DatabaseMetaData so
> that it retreives tha version number from the database server, instead
> of using a hard coded constant in the driver.
> Attached are patches for jdbc1 and jdbc2.
> I've only been able to test the jdbc2 driver, but I hope someone can
> check that the jdbc1 version works.

I'll check it against both. Hopefully the output from the backend doesnt
change it's format...

> (By the way, has anyone tried to merge the identical parts of the jdbc1
> and jdbc2 code?).

I have thought about it, but now isn't a good time as it would then
involve undoing it later. I've got plans on rewriting the jdbc2 ResultSet
to allow cursor support, and some of the duplicated areas would be
affected.

Peter



pgsql-interfaces by date:

Previous
From: Thomas Lockhart
Date:
Subject: Re: UnixODBC/Postgres & Excel...
Next
From: Ken Kachnowich
Date:
Subject: How to get latest source code for JDBC