Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-jdbc by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group