[hibernate-issues] [Hibernate-JIRA] Created: (HHH-5958) Session.cancelQuery does not cancel the Query which is running executeUpdate() method

Dzmitry Petrushenka (JIRA) noreply at atlassian.com
Thu Feb 24 09:25:08 EST 2011


Session.cancelQuery does not cancel the Query which is running executeUpdate() method
-------------------------------------------------------------------------------------

                 Key: HHH-5958
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5958
             Project: Hibernate Core
          Issue Type: Bug
          Components: core
            Reporter: Dzmitry Petrushenka


If thread A is running Query.list() and thread B calls Session.cancelQuery() on thread A's session it works fine - cancel is executed on thread A's active PreparedStatement. But when thread A is running Query.executeUpdate() method, cancel does not work. According to the sources (3.6.1 for instance)  Query.executeUpdate() does not store it's PreparedStatement anywhere. As the result Session.cancelQuery finds no PreparedStatement to cancel.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list