Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: BUG #4123: Statement.setQueryTimeout does not work with Postgres Java Driver


  • From: Kris Jurka <books(at)ejurka(dot)com>
  • To: Amit Mujawar <amit(dot)mujawar(at)gmail(dot)com>
  • Cc: pgsql-bugs(at)postgresql(dot)org
  • Subject: Re: BUG #4123: Statement.setQueryTimeout does not work with Postgres Java Driver
  • Date: Tue, 22 Apr 2008 11:53:19 -0400 (EDT)
  • Message-id: <Pine(dot)BSO(dot)4(dot)64(dot)0804221151530(dot)12720(at)leary(dot)csoft(dot)net>



On Tue, 22 Apr 2008, Amit Mujawar wrote:


The following bug has been logged online:

Bug reference:      4123
PostgreSQL version: 8.1
Description:        Statement.setQueryTimeout does not work with Postgres
Java Driver
Details:

I am using PostgreSQL through JDBC
PostgreSQL ??? 8.1, Driver - org.postgresql.Driver 8.1-408.jdbc3

I suspect there is a problem with JDBC driver implementation for
setQueryTimeout API.


setQueryTimeout is not implemented at all. Newer drivers (8.3+) will throw an exception telling you that if you try to call setQueryTimeout while older drivers silently accept the value and do nothing.

Kris Jurka



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group