Re: Status of setQueryTimeout

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: Status of setQueryTimeout
Дата
Msg-id alpine.BSO.2.00.1012251736280.29778@leary.csoft.net
обсуждение исходный текст
Ответ на Status of setQueryTimeout  ("Mackay, Scott" <scott.mackay@progeny.net>)
Список 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 по дате отправления:

Предыдущее
От: Kris Jurka
Дата:
Сообщение: Re: refreshRow is slow
Следующее
От: Clemens Eisserer
Дата:
Сообщение: Client-Side triggers possible?