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.