We're updating the issue view to help you get more done. 

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

Components

Fix versions

Affects versions

5.1.10

Priority

Major