Christian Beikov (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-15955 (
https://hibernate.atlassian.net/browse/HHH-15955?atlOrigin=eyJpIjoiZGU4NW...
)
Re: Hibernate 6.1.6 Never Uses LimitHandler w/ DB2 (
https://hibernate.atlassian.net/browse/HHH-15955?atlOrigin=eyJpIjoiZGU4NW...
)
The LimitHandler is now only used for native queries. Handling of limit/fetch and offset
clauses is now covered by the SqlAstTranslator contract. You can override
Dialect#getSqlAstTranslatorFactory() and return a custom subtype of DB2SqlAstTranslator
which returns false in an override of
org.hibernate.dialect.DB2SqlAstTranslator#supportsOffsetClause , but shouldn’t you rather
use the DB2zDialect instead?
Also, according to the documentation, DB2 z/OS supports the offset clause since version
12. Are you using an older version? If so, the
org.hibernate.dialect.DB2zSqlAstTranslator#supportsOffsetClause should already take care
of that.
(
https://hibernate.atlassian.net/browse/HHH-15955#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-15955#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100213- sha1:1fa7b87 )