DB2400Dialect could use the same LimitHandler as DB2Dialect

Description

If using Query.setFirstResult(int) with DB2400Dialect an Exception is thrown:

java.lang.UnsupportedOperationException: query result offset is not supported

This problem didn't occur in previous versions (prior to Hibernate version 5).

Working with DB2Dialect Query.setFirstResult(int) works. Looking at the code of DB2Dialect, I assume that DB2400Dialect could use the same LimitHandler as DB2Dialect.

Environment

Hibernate 5.0.7
DB2 for i (DB2/400)

Activity

Show:
Vlad Mihalcea
October 11, 2016, 8:35 AM

Applied PR upstream.

, you might want to backport this issue to 5.1 and 5.0.

Fixed

Assignee

Unassigned

Reporter

Niels Krankenberg

Fix versions

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Minor
Configure