Uploaded image for project: 'Hibernate ORM'
  1. HHH-12075

SQLQuery.executeUpdate() ignores SQLQuery.setTimeout()

    Details

    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true
    • Sprint:

      Description

      Even if a user set a timeout via SQLQuery.setTimeout(), SQLQuery.executeUpdate() does not use it. SQLQuery.executeUpdate() does not invoke Statement.setQueryTimeout() befere invoking Statement.executeUpdate().

      Note: SQLQuery.list() and Query.executeUpdate() works fine but SQLQuery.executeUpdate() does not work.

      It looks org.hibernate.engine.query.spi.NativeSQLQueryPlan.performExecuteUpdate() misses calling Statement.setQueryTimeout().

        Attachments

          Issue links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: