This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Query Timeout

 
Satish Gopalakrishnan
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a question regarding the query timeout. If i am not setting the timeout for a query explicitly using the setQueryTimeout() method, what is the default number of seconds it waits before it times-out .
 
Jamie Robertson
Ranch Hand
Posts: 1879
MySQL Database Suse
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Satish Gopalakrishnan:
This is a question regarding the query timeout. If i am not setting the timeout for a query explicitly using the setQueryTimeout() method, what is the default number of seconds it waits before it times-out .

you'll have to check yourself because different implementations may have different default values. You can use the Statement.getQueryTimeout() method to find out ( NOTE --> a value of zero means unlimited ).
Jamie
[ August 26, 2002: Message edited by: Jamie Robertson ]
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
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!