Mirek Jezbera (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=63d2a4d...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiYTEwMmQ5ODYz...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16109?atlOrigin=eyJpIjoiYTEwMm...
) HHH-16109 (
https://hibernate.atlassian.net/browse/HHH-16109?atlOrigin=eyJpIjoiYTEwMm...
) createNamedQuery adds offset and limit to all queries (
https://hibernate.atlassian.net/browse/HHH-16109?atlOrigin=eyJpIjoiYTEwMm...
)
Issue Type: Bug Affects Versions: 6.1.6 Assignee: Unassigned Attachments:
hibernate_named_query.zip Components: hibernate-core Created: 26/Jan/2023 08:19 AM
Priority: Major Reporter: Mirek Jezbera (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=63d2a4d...
)
Steps to reproduce (sample attached):
* Create Criteria Query
* Save query with addNamedQuery
* Use saved query with createNamedQuery
Actual results:
offset and limit is added to query (0 and MAX_INT I think)
Test using sample:
hibernate_named_query.zip (
https://hibernate.atlassian.net/secure/attachment/50192/50192_hibernate_n... )
./gradlew clean test
Hibernate: select count(u1_0.name) from User u1_0
Hibernate: select count(u1_0.name) from User u1_0 offset ? rows fetch first ? rows only
(
https://hibernate.atlassian.net/browse/HHH-16109#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16109#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#100214- sha1:634fa42 )