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
EnlistTransaction should check whether the given transaction is the same as the one it is already enlisted in and do nothing in that case. That would match the behaviour of MySql.Data and other providers.
Test to reproduce:
[Fact]
public void EnlistingInTheSameAmbientTransactionMultipleTimesDoesNotThrow()
{
using (new TransactionScope())
{
using (var connection = new MySqlConnection("AutoEnlist=false"))
{
connection.Open();
connection.EnlistTransaction(Transaction.Current);
connection.EnlistTransaction(Transaction.Current);
}
}
}
The text was updated successfully, but these errors were encountered:
EnlistTransaction should check whether the given transaction is the same as the one it is already enlisted in and do nothing in that case. That would match the behaviour of MySql.Data and other providers.
Test to reproduce:
The text was updated successfully, but these errors were encountered: