• Post Reply Bookmark Topic Watch Topic
  • New Topic

JDBC QueryTimeout and Databases

 
Rahul Bose
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

java.sql.Statement.QueryTimeout() times out the jdbc call if the db query takes more than the specified time. But can anybody tell me whether the query is terminated at the Database level or not ? Is it possible that the call timesout but the query continues to run on the DB ?

Thanks in advance,
-r
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36032
432
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rahul,
Welcome to JavaRanch!

The query does continue on the database. I don't know of any databases that have an automatic query kill.
 
Rahul Bose
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You. Yes it *does not* timeout at least in db2.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!