setQueryTimeout

From: Toni Urpí <urpi(at)lsi(dot)upc(dot)edu>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: setQueryTimeout
Date: 2008-01-14 14:40:08
Message-ID: 478B7448.9040802@lsi.upc.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Hi,

Does every know if the method |void setQueryTimeout||(int seconds)|
of Statement is implemented in the Postgres JDBC driver?

The driver seems to recognize it since with a -1 value I obtain an
SQLException stating that "Query timeout must be a value greater than or
equals to 0". However, with a positive number -says 1 second- and a
query that last more that 1 second, no SQLException is produced.

thank you

toni

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2008-01-14 16:28:45 Re: setQueryTimeout
Previous Message Kris Jurka 2008-01-14 10:27:38 Re: unnecessary exception patch