[jOOQ/jOOQ#16834] Wrong DataAccessException to IntegrityConstraintViolationException translation for DuckDB

This commit is contained in:
Lukas Eder 2024-06-17 09:33:15 +02:00
parent 608f88a00e
commit eb8dc8ce93

View File

@ -3635,7 +3635,7 @@ final class Tools {
if (m.contains("constraint violated: duplicate key"))
return new IntegrityConstraintViolationException("SQL [" + sql + "]; " + e.getMessage(), e);
else if (m.contains("constraint Error: not nullL constraint failed"));
else if (m.contains("constraint error: not null constraint failed"));
return new IntegrityConstraintViolationException("SQL [" + sql + "]; " + e.getMessage(), e);
}
}