10000 r2dbc - set session transaction isolation · jasync-sql/jasync-sql@5d84a2e · GitHub
[go: up one dir, main page]

Skip to content

Commit 5d84a2e

Browse files
committed
r2dbc - set session transaction isolation
fix for #409
1 parent 63e1484 commit 5d84a2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

r2dbc-mysql/src/main/java/JasyncClientConnection.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class JasyncClientConnection(
104104
Mono.defer { (jasyncConnection as MySQLConnection).sendQueryAfterCurrent(query).toMono().then() }
105105

106106
override fun setTransactionIsolationLevel(isolationLevel: IsolationLevel): Publisher<Void> {
107-
return executeVoidAfterCurrent("SET TRANSACTION ISOLATION LEVEL ${isolationLevel.asSql()}")
107+
return executeVoidAfterCurrent("SET SESSION TRANSACTION ISOLATION LEVEL ${isolationLevel.asSql()}")
108108
.doOnSuccess { this.isolationLevel = isolationLevel }
109109
}
110110

0 commit comments

Comments
 (0)
0