using (var connection = new XConnection(...))
using (var transaction = connection.BeginTransaction())
using (var cmd = connection.CreateCommand()
Console.WriteLine(cmd.Transaction == null);
Connector/NET, SqlConnection and NpgsqlConnection all print true; MySqlConnector prints false because .Transaction is set to the active transaction. We should follow the pattern of other ADO.NET connectors and require .Transaction to be set explicitly.
It's possible this could be affecting #333 if commands are being created with an active transaction, then used again after that transaction is committed.
The text was updated successfully, but these errors were encountered: