Re: [HACKERS] JDBC improvements - Mailing list pgsql-jdbc

From Nicolas Verger
Subject Re: [HACKERS] JDBC improvements
Date
Msg-id OBEKKEAKKLKKGIEBIPICGECOCCAA.nicolas@verger.net
Whole thread Raw
In response to Re: [HACKERS] JDBC improvements  (Barry Lind <barry@xythos.com>)
Responses Re: [HACKERS] JDBC improvements
Re: [HACKERS] JDBC improvements
Re: [HACKERS] JDBC improvements
List pgsql-jdbc
> -----Message d'origine-----
> De : Barry Lind [mailto:barry@xythos.com]
> Nicolas,
>
> AFAIK you should be able to get the EXPLAIN plan from the jdbc driver.
> All INFO messages from the backend are treated as warnings by the jdbc
> driver.  If you do a getWarnings() you should be able to get the explain
> plan information.
>
> Cancel query is on the jdbc todo list.  However I don't know of anyone
> that plans to implement it.  So a patch that adds that functionality
> would be welcome.
>
> thanks,
> --Barry
>
>

Ok, the getWarnings() method works on the Connection but not on the Statment
nor ResultSet... Why ?
I look in the source and it's just a little patch to do it.
I'm not used in GPL licence so if I make this patch what may I do with it ?

I watched for cancel query too, and I may work on it too ...

Nicolas



pgsql-jdbc by date:

Previous
From: "Tom Innes"
Date:
Subject: Error Codes and JDBC Driver for Postgres
Next
From: "Van Auken, Douglas"
Date:
Subject: Two dimensional arrays in 7.2 JDBC driver