Skip to content

HHH-15042: add offset-clause usage for DB2zDialect #4666

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

Atgoogat
Copy link
Contributor

@Atgoogat Atgoogat commented Jan 19, 2022

DB2z in Version 12 and beyond supports the "offset"-clause.

Current behavior:
Hibernate uses the "fetch first ..."-clause but does not use "offset" for paging requests.

Expected behavior:
For DB2z Databases in Version 12 and beyond the dialect should use the now supported "offset"-clause

IBM Docs:
https://www.ibm.com/docs/en/db2-for-zos/12?topic=subselect-offset-clause
https://www.ibm.com/docs/en/db2-for-zos/12?topic=subselect-fetch-clause

Test:
Because there is no DB2z Docker-DB testing this comes down to testing against an z/OS DB2 Instance.
I tested it against the DB2z Instance (v12.1.0) at work without any issues.

@beikov
Copy link
Member

beikov commented Jan 19, 2022

Awesome, thanks!

@beikov beikov merged commit 4775be3 into hibernate:main Jan 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants