We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3dd701f commit b93582aCopy full SHA for b93582a
hibernate-core/src/main/java/org/hibernate/dialect/CockroachDialect.java
@@ -1090,11 +1090,9 @@ public SQLExceptionConversionDelegate buildSQLExceptionConversionDelegate() {
1090
}
1091
return switch (sqlState) {
1092
// Serialization Exception
1093
- case "40001" -> {
1094
- if ( message.contains("WriteTooOldError") )
1095
- yield new TransactionSerializationException( message, sqlException, sql );
1096
- else yield null;
1097
- }
+ case "40001" -> message.contains("WriteTooOldError")
+ ? new TransactionSerializationException( message, sqlException, sql );
+ : null;
1098
// DEADLOCK DETECTED
1099
case "40P01" -> new LockAcquisitionException( message, sqlException, sql );
1100
// LOCK NOT AVAILABLE
0 commit comments