Christian Beikov (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiMWI0NTA1OWMw...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-15590?atlOrigin=eyJpIjoiMWI0NT...
) HHH-15590 (
https://hibernate.atlassian.net/browse/HHH-15590?atlOrigin=eyJpIjoiMWI0NT...
) UUIDJdbcType and VarcharUUIDJdbcType lack getJdbcLiteralFormatter implementation (
https://hibernate.atlassian.net/browse/HHH-15590?atlOrigin=eyJpIjoiMWI0NT...
)
Issue Type: Bug Affects Versions: 6.1.4 Assignee: Unassigned Components: hibernate-core
Created: 10/Oct/2022 05:10 AM Fix Versions: 6.1.5 Priority: Major Reporter: Christian
Beikov (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
The classes UUIDJdbcType and VarcharUUIDJdbcType lack implementations for
getJdbcLiteralFormatter , and the default is to just append the toString representation of
the java value. This leads to wrong literals being rendered into SQL.
The UUIDJdbcType should delegate to a Dialect method e.g. appendUUIDLiteral(SqlAppender,
UUID)}}and the {{VarcharUUIDJdbcType should just use the JdbcLiteralFormatterCharacterData
implementation.
Maybe we should do some sort of generic test that traverses all java types and tries to
create literals for them and do an is null check, to verify the produced SQL is valid.
(
https://hibernate.atlassian.net/browse/HHH-15590#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-15590#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#100207- sha1:591c2ef )