I'm developing an application using jTDS JDBC driver 1.3.1. I called stmt.setQueryTimeout(15), and then call stmt.executeBatch(). But, the query doesn't timeout after 15 seconds.
I looked at the source code of the jTDS 1.3.1. I found that in executeMSBatch() method, the method call of tds.executeSQL(......) uses 0 for timeout.
I wonder why it doesn't honor the "queryTimeout" value? Is it a bug or is there a reason behind it?
Thanks for your help.
This looks like a long-standing bug in the driver - thank you for reporting it! I'll open a corresponding bug ticket.
Okay. Good to know. Thank you for your reply.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.