MySqlConnector icon indicating copy to clipboard operation
MySqlConnector copied to clipboard

Use ServerStatus.InTransaction to determine active transaction

Open bgrainger opened this issue 7 years ago • 0 comments
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.

bgrainger avatar Apr 04 '18 18:04 bgrainger