Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id EAF871337B50 for ; Sat, 25 Dec 2010 18:40:41 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 60665-07 for ; Sat, 25 Dec 2010 22:40:35 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by mail.postgresql.org (Postfix) with ESMTP id CF8691337B4E for ; Sat, 25 Dec 2010 18:40:34 -0400 (AST) Received: from mail63.csoft.net (localhost [127.0.0.1]) by mail63.csoft.net (Postfix) with ESMTP id 9E7DF28413; Sat, 25 Dec 2010 17:40:34 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=csoft.net; h=date:from:to :cc:subject:in-reply-to:message-id:references:mime-version :content-type; s=sel1; bh=zO1I7lja+zeZAiUS6IonnkgaFTg=; b=GGQ8WQ AKEAI7Q+biJMyIUkC4jiVyzN4FGd6SAuG1cCDho0lbHYS06HNuA1Yn7SjIyGLSgU hkW0XiqNQVfwKieMGtdXEyF+stWCeqyPSS+X8YYHaa9b347S9umVJ5h12P2hMPOo e+srbU009F8KaBeEY8yfu9dfHRNrTQksVSq/g= Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail63.csoft.net (Postfix) with ESMTP id 9BF6F28403; Sat, 25 Dec 2010 17:40:34 -0500 (EST) Received: by leary.csoft.net (Postfix, from userid 1112) id 9F1F6AB13; Sat, 25 Dec 2010 17:40:34 -0500 (EST) Date: Sat, 25 Dec 2010 17:40:34 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: "Mackay, Scott" cc: pgsql-jdbc@postgresql.org Subject: Re: Status of setQueryTimeout In-Reply-To: <8891CBD423B67B4D898B3738DBD4F152515936@es-22c.manassas.progeny.net> Message-ID: References: <8891CBD423B67B4D898B3738DBD4F152515936@es-22c.manassas.progeny.net> User-Agent: Alpine 2.00 (BSO 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201012/71 X-Sequence-Number: 21309 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