-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
parser, variable: fix #5478, make 'set transaction read only' works. #5483
Conversation
@coocood @shenli @tiancaiamao PTAL |
// issue #5478 | ||
_, err = tk.Exec("set session transaction read write;") | ||
_, err = tk.Exec("set global transaction read write;") | ||
r = tk.MustQuery(`select @@session.tx_read_only, @@global.tx_read_only, @@session.transaction_read_only, @@global.transaction_read_only;`) |
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.
Is there any difference between transaction_read_only and tx_read_only?
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.
transaction_read_only was added in MySQL 5.7.20 as an alias for tx_read_only, which is now deprecated and is removed in MySQL 8.0. Applications should be adjusted to use transaction_read_only in preference to tx_read_only.
LGTM |
LGTM |
/run-all-tests |
/run-integration-common-test -tidb-test=pr/435 |
/run-common-test -tidb-test=pr/435 |
/run-integration-common-test |
/run-common-test |
/run-integration-common-test -tidb-test=pr/436 |
/run-integration-common-test |
before this pr, use jdbc, in some case, we will get below error :