Re: Status of setQueryTimeout - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: Status of setQueryTimeout
Date
Msg-id alpine.BSO.2.00.1012251736280.29778@leary.csoft.net
Whole thread Raw
In response to Status of setQueryTimeout  ("Mackay, Scott" <scott.mackay@progeny.net>)
List pgsql-jdbc

On Thu, 9 Dec 2010, Mackay, Scott wrote:

>
> Hi there, I currently am using postgresql-8.2-504.jdbc.jar and had a
> question about the PreparedStatement.setQueryTimeout(). I finally got
> around to looking at the latest releases because I wanted to get access
> to the generate key result sets for inserts so I downloaded the 9 and
> then the 8.4 releases.  While it seemed to work in 8.2-504, none of the
> later releases seemed to accept the method, indicating the method is not
> implemented.  Was there something wrong with the original
> setQueryTimeout or was it something that had to be taken out due to
> design changes?  Looking at the current provided releases I saw there
> was a 8.2.511 and that also seemed to accept the setQueryTimeout.
>

The 8.2 and earlier series accepted calls to setQueryTimeout, but then
ignored the value, so there wasn't any timeout in effect.  Starting with
8.3, we throw an error to indicate to the user that the call doesn't work.

Kris Jurka

pgsql-jdbc by date:

Previous
From: Kris Jurka
Date:
Subject: Re: refreshRow is slow
Next
From: Clemens Eisserer
Date:
Subject: Client-Side triggers possible?