MySqlConnector
MySqlConnector copied to clipboard
Use ServerStatus.InTransaction to determine active transaction
trafficstars
MySqlConnector currently detects nested transactions by using the MySqlConnection.CurrentTransaction property. This is only set if the user uses the BeginTransaction(Async) API. It would be more robust to check the server status reported from MySQL to know if there is an active transaction.