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. |
|