Re: JDBC and setting statement_timeout

From: Jason Long <mailing(dot)list(at)supernovasoftware(dot)com>
To: Kris Jurka <books(at)ejurka(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: JDBC and setting statement_timeout
Date: 2008-11-04 17:23:06
Message-ID: 491084FA.3000604@supernovasoftware.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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?

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2008-11-04 17:53:07 Re: time interval format srting
Previous Message Webb Sprague 2008-11-04 17:21:18 Semi-customized queries? Subset of SQL? Accessing the parser? Injection?