Skip to content

Commit 91c9331

Browse files
committed
fix: restoring transaction isolation level for bulk import
1 parent 1fe6192 commit 91c9331

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public synchronized Connection getTransactionConnection() throws SQLException, S
4444
if (this.connection == null) {
4545
Connection con = ConnectionPool.getConnectionForProxyStorage(this);
4646
this.connection = new BulkImportProxyConnection(con);
47+
connection.setTransactionIsolation(Connection.TRANSACTION_REPEATABLE_READ);
4748
connection.setAutoCommit(false);
4849
}
4950
return this.connection;

0 commit comments

Comments
 (0)