executeBatch does not use "queryTimeout"

  • chenzhuan

    chenzhuan - 2014-02-04


    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.

  • momo

    momo - 2014-02-04

    This looks like a long-standing bug in the driver - thank you for reporting it! I'll open a corresponding bug ticket.


  • chenzhuan

    chenzhuan - 2014-02-04

    Okay. Good to know. Thank you for your reply.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks