Flash Vayne (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=712020%...
) *updated* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiZDdhNjdlZjJj...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16436?atlOrigin=eyJpIjoiZDdhNj...
) HHH-16436 (
https://hibernate.atlassian.net/browse/HHH-16436?atlOrigin=eyJpIjoiZDdhNj...
) Hibernate 6 - Numeric Overflow Exception when retrieving the Meta-data for sequences
from Oracle Database (
https://hibernate.atlassian.net/browse/HHH-16436?atlOrigin=eyJpIjoiZDdhNj...
)
Change By: Flash Vayne (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=712020%...
)
When I upgrade Hibernate from 5 to 6, Numeric Overflow Exception occurs.
*Database Column:*
NUMBER(10,0)
*Column data:*
'3876543210'
* SQL: *
!p1.png|width=449,height=68!
* Exception: *
!p2.png|width=1367,height=145!
I found that the org.hibernate.OracleDialect always was set to default Dialect select
Integer as JdbcType when precision = 10.
If I change org.hibernate.OracleDialect to org.hibernate.MariaDBDialect, it works.
I think there is a bug in org.hibernate.OracleDialect, but I can’t change it to older
OracleDialect like Oracle10gDialect due to the reason in below alert
! p3 image-20230406-040731.png|width= 790 832 ,height= 50 437 !
Also I try all the hibernate 6.x version Actually '3876543210' is not a Integer
data but can be saved in column NUMER(10 , neither works 0).
So I think it’s bug, can you please help check it?
(
https://hibernate.atlassian.net/browse/HHH-16436#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16436#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:78e8bd6 )