asyncer-io / r2dbc-mysql

Reactive Relational Database Connectivity for MySQL. The official successor to mirromutth/r2dbc-mysql(dev.miku:r2dbc-mysql).
https://r2dbc.io
Apache License 2.0
184 stars 18 forks source link

Ensure isolation level is applied to subsequent transactions after setting #202

Closed JohnNiang closed 6 months ago

JohnNiang commented 6 months ago

Motivation:

Aligning Connection#setTransactionIsolationLevel Behavior with r2dbc-spi Specification. See https://github.com/asyncer-io/r2dbc-mysql/issues/192 for more.

Modification:

Change session isolation level as well after invoking Connection#setTransactionIsolationLevel.

Result:

All subsequent transactions will be applied the isolation level set by Connection#setTransactionIsolationLevel.