Skip to content

Commit a80d4f4

Browse files
porcellusMihaly Lengyel
andauthored
fix: isolation level fallthrough (#32)
Co-authored-by: Mihaly Lengyel <[email protected]>
1 parent 0733768 commit a80d4f4

File tree

1 file changed

+5
-0
lines changed
  • src/main/java/io/supertokens/storage/postgresql

1 file changed

+5
-0
lines changed

src/main/java/io/supertokens/storage/postgresql/Start.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,14 +236,19 @@ private <T> T startTransactionHelper(TransactionLogic<T> logic, TransactionIsola
236236
switch (isolationLevel) {
237237
case SERIALIZABLE:
238238
libIsolationLevel = Connection.TRANSACTION_SERIALIZABLE;
239+
break;
239240
case REPEATABLE_READ:
240241
libIsolationLevel = Connection.TRANSACTION_REPEATABLE_READ;
242+
break;
241243
case READ_COMMITTED:
242244
libIsolationLevel = Connection.TRANSACTION_READ_COMMITTED;
245+
break;
243246
case READ_UNCOMMITTED:
244247
libIsolationLevel = Connection.TRANSACTION_READ_UNCOMMITTED;
248+
break;
245249
case NONE:
246250
libIsolationLevel = Connection.TRANSACTION_NONE;
251+
break;
247252
}
248253
con.setTransactionIsolation(libIsolationLevel);
249254
con.setAutoCommit(false);

0 commit comments

Comments
 (0)