From: Vasanth Veeraraghavan <vasanth.veeraraghavan@aspiresys.com>
To: pgsql-jdbc@postgresql.org
Subject: Question-set Query time out in Locking
Date: Fri, 24 Sep 2004 10:46:27 +0530
Message-ID: <000801c4a1f5$a4ce4ee0$a100a8c0@Aspiresys.com> (raw)
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: vasanth.veeraraghavan@aspiresys.com
Subject: Re: Question-set Query time out in Locking
In-Reply-To: <000801c4a1f5$a4ce4ee0$a100a8c0@Aspiresys.com>
References: <000801c4a1f5$a4ce4ee0$a100a8c0@Aspiresys.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox