-
Notifications
You must be signed in to change notification settings - Fork 337
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
Allows the use of snapshot isolation level on transactions #791
Conversation
Signed-off-by: John Battye <John.Battye@ipfin.co.uk>
Signed-off-by: John Battye <John.Battye@ipfin.co.uk>
Signed-off-by: John Battye <John.Battye@ipfin.co.uk>
Signed-off-by: John Battye <John.Battye@ipfin.co.uk>
{ | ||
DbConnection connection = m_connection; | ||
m_connection.Execute(@"set global log_output = 'table';"); | ||
m_connection.Execute(@"set global general_log = 1;"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding tests for the new behaviour!
Since multiple tests can be run in parallel, is it possible that set global general_log
is capturing log statements from other tests running simultaneously on other connections? You might be able to filter by thread_id
to this connection's log output (using MySqlConnection.ServerThread
).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the tip, will try it out
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bgrainger Are you happy with this now the tests are passing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I didn't see that the PR was updated and passing. Thanks for pinging me; I'll check it out soon.
Signed-off-by: John Battye <John.Battye@ipfin.co.uk>
Signed-off-by: John Battye <John.Battye@ipfin.co.uk>
Signed-off-by: John Battye <John.Battye@ipfin.co.uk>
Signed-off-by: John Battye <John.Battye@ipfin.co.uk>
Signed-off-by: John Battye <John.Battye@ipfin.co.uk>
Signed-off-by: John Battye <John.Battye@ipfin.co.uk>
Thanks for the contribution! |
Added in 0.63.2. |
Allows the use of using the isolation level snapshot for transactions, as per https://dev.mysql.com/doc/refman/5.7/en/commit.html