Re: JDBC and setting statement_timeout - Mailing list pgsql-general

From Jason Long
Subject Re: JDBC and setting statement_timeout
Date
Msg-id 491084FA.3000604@supernovasoftware.com
Whole thread Raw
In response to Re: JDBC and setting statement_timeout  (Kris Jurka <books@ejurka.com>)
List pgsql-general
Kris Jurka wrote:
>
>
> On Mon, 3 Nov 2008, Jason Long wrote:
>
>> *Would someone please comment on the status of setQueryTimeout in the
>> JDBC driver? Is there any workaround if this is still not implemented?*
>>
>
> setQueryTimeout is not implemented, the workaround is to manually
> issue SET statement_timeout = xxx calls via Statement.execute.
>
> Kris Jurka
1.  Could you provide a code sample to work with straight JDBC?
2.  Can someone advise how this might work with EJB3/Hibernate?

pgsql-general by date:

Previous
From: Joao Ferreira gmail
Date:
Subject: time interval format srting
Next
From: "Webb Sprague"
Date:
Subject: Semi-customized queries? Subset of SQL? Accessing the parser? Injection?