Skip to content

Commit e5489c4

Browse files
default isolation
1 parent 5fa178b commit e5489c4

File tree

1 file changed

+1
-1
lines changed
  • ktorm-global/src/main/kotlin/org/ktorm/global

1 file changed

+1
-1
lines changed

ktorm-global/src/main/kotlin/org/ktorm/global/Global.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ public inline fun <T> useConnection(func: (Connection) -> T): T {
256256
* @see Database.useTransaction
257257
*/
258258
@OptIn(ExperimentalContracts::class)
259-
public inline fun <T> useTransaction(isolation: TransactionIsolation?, func: (Transaction) -> T): T {
259+
public inline fun <T> useTransaction(isolation: TransactionIsolation? = null, func: (Transaction) -> T): T {
260260
contract {
261261
callsInPlace(func, InvocationKind.EXACTLY_ONCE)
262262
}

0 commit comments

Comments
 (0)