Replies: 4 comments 2 replies
-
I'm inclined to say this should fail for the reason you say - its possible to have overflow. Though I do wonder about applications that simply never push "large" values to that column. But if they are requesting validation, maybe its just best to tell them.. |
Beta Was this translation helpful? Give feedback.
-
I should perhaps give some context: |
Beta Was this translation helpful? Give feedback.
-
I'm inclined to think that it should fail, whether the columndefinition states "tinyint" or "tinyint ... ", forcing the use of @JdbcTypeCode for it to pass |
Beta Was this translation helpful? Give feedback.
-
After digging a bit deeper into this, it appears that there is simply a bug somewhere else. See https://github.com/hibernate/hibernate-orm/pull/6548/files#r1196727159 for details. Let's keep that discussion on the PR though. I'll close the poll :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The issue HHH-16578 exposed a problem with schema validation that we need to decide on how to handle.
If the database has a column
tinyint unsigned
, what should happen in schema validation for an attribute of typeint
that has a column definition oftinyint unsigned default 0
? The JDBC driver reportsTypes.TINYINT
for the column type, and the type code we assume for the model isTypes.INTEGER
.1 vote ·
Beta Was this translation helpful? Give feedback.
All reactions