Question-set Query time out in Locking

From: "Vasanth Veeraraghavan" <vasanth(dot)veeraraghavan(at)aspiresys(dot)com>
To: <pgsql-jdbc(at)postgresql(dot)org>
Subject: Question-set Query time out in Locking
Date: 2004-09-24 05:16:27
Message-ID: 000801c4a1f5$a4ce4ee0$a100a8c0@Aspiresys.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2004-09-24 10:09:50 Re: Question-set Query time out in Locking
Previous Message Victor Sanchez2 2004-09-23 22:51:03 Re: pg_hba.conf ---> problem??