Question-set Query time out in Locking - Mailing list pgsql-jdbc

From Vasanth Veeraraghavan
Subject Question-set Query time out in Locking
Date
Msg-id 000801c4a1f5$a4ce4ee0$a100a8c0@Aspiresys.com
Whole thread Raw
Responses Re: Question-set Query time out in Locking  (Kris Jurka <books@ejurka.com>)
List pgsql-jdbc
Hi!
 
I wrote a code,for setting querytime out for a querry,which is accessing a locked table.but when the time elapsed,the code is not throwing error.Kindly help me..
 
OS: windows xp,
DB :postgres
My code is:

st.setQueryTimeout(2);

rs=st.executeQuery("select * from table1 where column1=2");

Note:table1 is locked.this locking is done by another java code.

Thank you,

Vasanth.

 

 

pgsql-jdbc by date:

Previous
From: Victor Sanchez2
Date:
Subject: Re: pg_hba.conf ---> problem??
Next
From: Kris Jurka
Date:
Subject: Re: Question-set Query time out in Locking