gittenburg (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5eca456...
) *updated* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiYTk5MmVhMDhk...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-14041?atlOrigin=eyJpIjoiYTk5Mm...
) HHH-14041 (
https://hibernate.atlassian.net/browse/HHH-14041?atlOrigin=eyJpIjoiYTk5Mm...
) H2Dialect does not correctly extract violated constraint names for 23506 (
https://hibernate.atlassian.net/browse/HHH-14041?atlOrigin=eyJpIjoiYTk5Mm...
)
Change By: gittenburg (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5eca456...
)
For SQLState: 23506 h2 returns:
{noformat}Referential integrity constraint violation: "FK_PROGRESS_CARD:
PUBLIC.PROGRESS FOREIGN KEY(CARD_ID) REFERENCES PUBLIC.CARDS(ID) (0)"; SQL
statement:insert into progress (due, factor, card_id, user_id) values (?, ?, ?, ?)
[23506-200]{noformat}
H2Dialect's ViolatedConstraintNameExtracter currently only strips away everything up
to and including ` {{ violation: ` }} , making
{{constraintViolationException.getConstraintName()}} return {{"FK_PROGRESS_CARD:
PUBLIC.PROGRESS FOREIGN KEY(CARD_ID) REFERENCES PUBLIC.CARDS(ID) (0)"; SQL
statement:}}
{{insert into progress (due, factor, card_id, user_id) values (?, ?, ?, ?) [23506-200]}},
which is obviously wrong.
(
https://hibernate.atlassian.net/browse/HHH-14041#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-14041#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#100127- sha1:ff24dc8 )