Gavin King (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiYzM1MDJkNWIz...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16048?atlOrigin=eyJpIjoiYzM1MD...
) HHH-16048 (
https://hibernate.atlassian.net/browse/HHH-16048?atlOrigin=eyJpIjoiYzM1MD...
) inconsistent semantics for / operator on integers (
https://hibernate.atlassian.net/browse/HHH-16048?atlOrigin=eyJpIjoiYzM1MD...
)
Issue Type: Bug Assignee: Unassigned Components: hibernate-core Created: 16/Jan/2023 02:50
AM Priority: Major Reporter: Gavin King (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
We currently don’t have consistent semantics for expression like 3/2 :
* on, I believe, most databases, this does integer division and evaluates to 1 , but
* on MySQL, it evaluates to 1.5 , and
* on Oracle, the same, though for different reasons, I guess (Oracle number type).
So I wonder if we should be translating }} to {{div on these dbs. (At the risk of breaking
existing queries.)
(
https://hibernate.atlassian.net/browse/HHH-16048#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16048#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:bdfa1eb )