Menu

#118 Invalid statement object state at r1108

closed
momo
None
5
2012-08-15
2011-11-11
No

The JtdsStatement.close() cleanup in r1108 introduces a problem. When using jTDS with Hibernate Tools, an error is thrown complaining that the Statement is closed, presumably after Hibernate Tools closes a connection and then asks for another one. Moving closed = true back to a finally block fixes this problem (although I don't know if that's the optimal fix). Stack track and patch attached.

Discussion

  • Shane StClair

    Shane StClair - 2011-11-11

    Patch for JtdsStatement.close()

     
  • Shane StClair

    Shane StClair - 2011-11-11

    Stack trace

     
  • momo

    momo - 2012-03-22

    Thank you for reporting that problem. I just fixed it in SVN.

    Cheers,
    momo

     

Anonymous
Anonymous

Add attachments
Cancel