pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Mackay, Scott <scott.mackay@progeny.net>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Status of setQueryTimeout
Date: Sat, 25 Dec 2010 17:40:34 -0500 (EST)
Message-ID: <alpine.BSO.2.00.1012251736280.29778@leary.csoft.net> (raw)
In-Reply-To: <8891CBD423B67B4D898B3738DBD4F152515936@es-22c.manassas.progeny.net>
References: <8891CBD423B67B4D898B3738DBD4F152515936@es-22c.manassas.progeny.net>



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



view thread (2+ messages)

Message-ID: <alpine.BSO.2.00.1012251736280.29778@leary.csoft.net>
Permalink:  ../alpine.BSO.2.00.1012251736280.29778@leary.csoft.net/
Also on:    postgresql.org/message-id/alpine.BSO.2.00.1012251736280.29778@leary.csoft.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: books@ejurka.com, scott.mackay@progeny.net
  Subject: Re: Status of setQueryTimeout
  In-Reply-To: <alpine.BSO.2.00.1012251736280.29778@leary.csoft.net>
  References: <8891CBD423B67B4D898B3738DBD4F152515936@es-22c.manassas.progeny.net> <alpine.BSO.2.00.1012251736280.29778@leary.csoft.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox