From 2841be4a13b94e2f8cc4a2fd05be60a071a8821b Mon Sep 17 00:00:00 2001 From: Karel Maesen Date: Tue, 29 Oct 2024 08:47:17 +0100 Subject: [PATCH] Fix minor syntax bug --- .../src/main/java/org/hibernate/dialect/CockroachDialect.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/CockroachDialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/CockroachDialect.java index 11e6efd30205..5b1d39163697 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/CockroachDialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/CockroachDialect.java @@ -1091,8 +1091,8 @@ public SQLExceptionConversionDelegate buildSQLExceptionConversionDelegate() { return switch (sqlState) { // Serialization Exception case "40001" -> message.contains("WriteTooOldError") - ? new TransactionSerializationException( message, sqlException, sql ); - : null; + ? new TransactionSerializationException( message, sqlException, sql ) + : null; // DEADLOCK DETECTED case "40P01" -> new LockAcquisitionException( message, sqlException, sql ); // LOCK NOT AVAILABLE