Skip to content

Commit 898eb17

Browse files
committed
Use auto-commit also for R2DBC connections
[#138]
1 parent 81b5a20 commit 898eb17

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/jmh/java/io/r2dbc/postgresql/StatementBenchmarks.java

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import org.openjdk.jmh.annotations.State;
2727
import org.openjdk.jmh.infra.Blackhole;
2828
import reactor.core.publisher.Flux;
29+
import reactor.core.publisher.Mono;
2930

3031
import java.sql.Connection;
3132
import java.sql.PreparedStatement;
@@ -72,6 +73,7 @@ public ConnectionHolder() {
7273
jdbc.setAutoCommit(false);
7374

7475
r2dbc = new PostgresqlConnectionFactory(extension.getConnectionConfiguration()).create().block();
76+
Mono.from(r2dbc.setAutoCommit(false)).block();
7577
} catch (SQLException e) {
7678
throw new RuntimeException(e);
7779
}

0 commit comments

Comments
 (0)