Skip to content

Commit fc35261

Browse files
committed
Fix ViolatedConstraintNameExtracter
1 parent 3111325 commit fc35261

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/sqlite/hibernate/dialect/SQLiteDialect.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ public ViolatedConstraintNameExtracter getViolatedConstraintNameExtracter() {
246246
protected String doExtractConstraintName(SQLException sqle) throws NumberFormatException {
247247
final int errorCode = JdbcExceptionHelper.extractErrorCode( sqle ) & 0xFF;
248248
if (errorCode == SQLITE_CONSTRAINT) {
249-
return extractUsingTemplate( "constraint failed: ", "$", sqle.getMessage() );
249+
return extractUsingTemplate( "constraint failed: ", "\n", sqle.getMessage() );
250250
}
251251
return null;
252252
}

0 commit comments

Comments
 (0)