SQLQuery.executeUpdate() ignores SQLQuery.setTimeout()

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().

Environment

None

Status

Assignee

Gail Badner

Reporter

Masafumi Miura

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

5.1.10

Priority

Major