Christian Beikov (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiMzJlYzM0NTQ3...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-15463?atlOrigin=eyJpIjoiMzJlYz...
) HHH-15463 (
https://hibernate.atlassian.net/browse/HHH-15463?atlOrigin=eyJpIjoiMzJlYz...
) Adjust varchar/varbinary JdbcType based on size and also when explicitly specified (
https://hibernate.atlassian.net/browse/HHH-15463?atlOrigin=eyJpIjoiMzJlYz...
)
Issue Type: Bug Assignee: Christian Beikov (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) Components: hibernate-core Created: 25/Aug/2022 00:29 AM Fix Versions: 6.1.3 Priority:
Major Reporter: Christian Beikov (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
We currently emit DDL types e.g. clob / blob}}when the size/length exceeds a certain
value, but the {{JdbcType still is varchar / varbinary , which causes issues on certain
databases where the JDBC driver does not support setString / setBytes for clob / blob , so
we should adjust the types based on size also. After doing so, we could actually stop
using clob / blob}}as biggest types for {{varchar / varbinary.
It might be interesting to add new SqlTypes codes e.g. MATERIALIZED_CLOB and
MATERIALIZED_BLOB for which we register JdbcType}}that bind through {{setString /
setBytes. We would control this based on knowledge about whether the driver supports this
through e.g. Dialect#supportsMaterializedLobAccess
(
https://hibernate.atlassian.net/browse/HHH-15463#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-15463#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#100206- sha1:d2e68df )