File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ protected override void OnStart()
29
29
_ => "repeatable read" ,
30
30
} ;
31
31
32
- using var cmd = new MySqlCommand ( $ "set transaction isolation level { isolationLevel } ;", Connection ) ;
32
+ using var cmd = new MySqlCommand ( $ "set session transaction isolation level { isolationLevel } ;", Connection ) ;
33
33
cmd . ExecuteNonQuery ( ) ;
34
34
35
35
var consistentSnapshotText = Transaction . IsolationLevel == IsolationLevel . Snapshot ? " with consistent snapshot" : "" ;
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ private async ValueTask<MySqlTransaction> BeginDbTransactionAsync(IsolationLevel
71
71
_ => throw new NotSupportedException ( "IsolationLevel.{0} is not supported." . FormatInvariant ( isolationLevel ) )
72
72
} ;
73
73
74
- using ( var cmd = new MySqlCommand ( $ "set transaction isolation level { isolationLevelValue } ;", this ) )
74
+ using ( var cmd = new MySqlCommand ( $ "set session transaction isolation level { isolationLevelValue } ;", this ) )
75
75
{
76
76
await cmd . ExecuteNonQueryAsync ( ioBehavior , cancellationToken ) . ConfigureAwait ( false ) ;
77
77
You can’t perform that action at this time.
0 commit comments