Branch: refs/heads/main
Home:
https://github.com/hibernate/hibernate-orm
Commit: 978c94a12d1a69aa833408705690a77697f90776
https://github.com/hibernate/hibernate-orm/commit/978c94a12d1a69aa8334087...
Author: gwenn <45554+gwenn(a)users.noreply.github.com>
Date: 2025-05-13 (Tue, 13 May 2025)
Changed paths:
M
hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/SQLiteDialect.java
Log Message:
-----------
HHH-19444 SQLiteDialect - Fix ViolatedConstraintNameExtractor
See
https://github.com/sqlite/sqlite/commit/f9c8ce3ced8960e7c8d74b68ad420ec5f...
Standardize the error messages generated by constraint failures to a
format of "$TYPE constraint failed: $DETAIL".
Also in case [extended result
codes](http://sqlite.org/c3ref/extended_result_codes.html)
are activated, we need the `& 0xFF`.
And as there seems to be no way to tell `extractUsingTemplate` that there is no
`templateEnd`, the linefeed is used...
See
[
original](https://github.com/gwenn/sqlite-dialect/blob/c87223460e3335ff4f...
code and associated
[
test](https://github.com/gwenn/sqlite-dialect/blob/c87223460e3335ff4f041e...
for reference.
To unsubscribe from these emails, change your notification settings at
https://github.com/hibernate/hibernate-orm/settings/notifications