Martijn Spronk (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiZTc1NzM2M2Fj...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16452?atlOrigin=eyJpIjoiZTc1Nz...
) HHH-16452 (
https://hibernate.atlassian.net/browse/HHH-16452?atlOrigin=eyJpIjoiZTc1Nz...
) Statement inside select with long parameter wrongly cast to bigint for MySQL (
https://hibernate.atlassian.net/browse/HHH-16452?atlOrigin=eyJpIjoiZTc1Nz...
)
Issue Type: Bug Affects Versions: 6.1.7 Assignee: Unassigned Attachments:
demo_hibernate_bigint.zip Components: query-hql Created: 10/Apr/2023 21:33 PM Environment:
Hibernate 6.1.7
MySQL 8.0
Jakarta Persistence 3.1.0 Priority: Major Reporter: Martijn Spronk (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
Similar to issue
https://hibernate.atlassian.net/browse/HHH-15647 , where the issue
appeared in a subselect, does this issue also result in an exception when using a long
inside a statement in the Select clause, ie:
select creator.id = :accountId as ownership from Document
The accountId will be translated to cast(X as bigint) which should actually be either
signed or unsigned.
(
https://hibernate.atlassian.net/browse/HHH-16452#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16452#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#100221- sha1:9ff53d8 )