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
Can't START TRANSACTION ... READ ONLY
#817
Comments
Would an additional overload to BeginTransaction(IsolationLevel isolationLevel, bool isReadOnly);
BeginTransactionAsync((IsolationLevel isolationLevel, bool isReadOnly, CancellationToken cancellationToken = default); |
I think that would be adequate, thanks. Reading the documentation I would note:
Given the version limitation and desire to have a default (i.e. omit |
Added in 0.68.0. |
I've tested this method and it doesn't work in all cases.
The offending code seems to be here. Basically if snapshot isolation is specified then the SQL that is executed is I can tee up a pull request for it in my spare time, and/or log this as a new issue. |
I did not read the documentation (or test) thoroughly enough. |
Fixed in 0.68.1. |
Hi, thanks for the library. I appreciate your effort in giving first-class support to asynchronous operations.
I'd like to
START TRANSACTION ... READ ONLY
. Unfortunately it seems like nothing inMySqlConnection.BeginDbTransactionAsync
will appendREAD ONLY
to theSTART TRANSACTION
command.There's a corresponding
READ WRITE
option, too. The relevant MySQL documentation is here.For now I'm eschewing
MySqlTransaction
in favour of managing it myself with commands.The text was updated successfully, but these errors were encountered: