Skip to content

Commit 9b1e174

Browse files
authored
Support setting non-standard isolation level
For JDBC drivers (like Informix) isolation level 5 is a valid value. Given JDBC Connection.transactionIsolation is just an int, it doesn't make sense to limit the possible values to what is defined in JDBC Connection class
1 parent b80182c commit 9b1e174

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ebean-datasource/src/main/java/io/ebean/datasource/pool/TransactionIsolation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ static String getDescription(int level) {
2525
case -1:
2626
return "NotSet";
2727
default:
28-
throw new RuntimeException("Transaction Isolation level [" + level + "] is not defined.");
28+
return "UNKNOWN[" + level + "]";
2929
}
3030
}
3131
}

0 commit comments

Comments
 (0)