You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug on setting isolation level on r2dbc-mysql #409
According to the documentation, this should be across the lifetime of the connection. But turn out it is not true, the isolation level switch back to repeatable read immediately after the first transaction is run.
This is observed by using select * from performance_schema.events_transactions_current
I look into the source code. On the r2dbc-mysql project,
The statement to set the isolation level is not correct. The session keyword should be added to make it effective to all the subsequent transactions. (ref: https://dev.mysql.com/doc/refman/8.0/en/set-transaction.html) SET SESSION TRANSACTION ISOLATION LEVEL ${isolationLevel.asSql()}
Activity
oshai commentedon Jul 31, 2023
Would you like to create a PR to fix it?
r2dbc - set session transaction isolation
r2dbc - set session transaction isolation
oshai commentedon Aug 14, 2023
Fix in 2.2.3.