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
196 stars 21 forks source link

Correct transaction statement building #252

Closed mirromutth closed 7 months ago

mirromutth commented 7 months ago

Motivation:

Currently, START TRANSACTION does not allow READ ONLY and WITH CONSISTENT SNAPSHOT to be used at the same time. Multiple transaction properties need to be separated by commas. e.g. START TRANSACTION WITH CONSISTENT SNAPSHOT, READ ONLY

Modification:

Result:

READ ONLY and WITH CONSISTENT SNAPSHOT can be used simultaneously in a transaction.