-
Notifications
You must be signed in to change notification settings - Fork 335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot commit transaction more than once #61
Comments
I'll need to check if MySql.Data implements this behaviour; if it doesn't, this would be a potentially-breaking change for users switching from that MySQL provider to this library. Additionally, clearing the connection when the transaction is committed isn't an obviously documented behaviour of I'll investigate, but my initial inclination is (for better or worse) to clone |
Interestingly, this behaviour is documented for
But it's not documented as such on the base class or the interface. |
Npgsql appears to follow the SqlTransaction model. |
I checked this with AdoNet.Specification.Tests (https://github.com/mysql-net/AdoNetApiTest) and only Connector/NET doesn't clear |
Fixed in 0.34.0. |
Wrong description, but when committing a transaction, the SqlTransaction's Connection-property turns null. I depend on this behavior (perhaps I shouldn't), but for this library, the connection is not nulled on the transaction. Maybe this is something you would want to change to mimic the SqlTransactions' behaviour more.
The text was updated successfully, but these errors were encountered: