diff --git a/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/transactions/ThreadLocalTransactionManager.kt b/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/transactions/ThreadLocalTransactionManager.kt index 7efc999112..79921d5d5c 100644 --- a/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/transactions/ThreadLocalTransactionManager.kt +++ b/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/transactions/ThreadLocalTransactionManager.kt @@ -205,14 +205,16 @@ fun transaction( } finally { TransactionManager.resetCurrent(currentManager) } - } ?: inTopLevelTransaction(transactionIsolation, - repetitionAttempts, - readOnly, - db, - null, - minRepetitionDelay, - maxRepetitionDelay, - statement) + } ?: inTopLevelTransaction( + transactionIsolation, + repetitionAttempts, + readOnly, + db, + null, + minRepetitionDelay, + maxRepetitionDelay, + statement + ) } }