-
Notifications
You must be signed in to change notification settings - Fork 490
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: set UnionStmt
and ShowStmt
as readonly
#755
Conversation
Codecov Report
@@ Coverage Diff @@
## master #755 +/- ##
=======================================
Coverage 77.85% 77.85%
=======================================
Files 40 40
Lines 14455 14455
=======================================
Hits 11254 11254
Misses 2516 2516
Partials 685 685 |
But what about |
Great catch! |
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.
LGTM
LGTM |
* add UnionStmt and ShowStmt as readonly * fix UnionStmt
/run-cherry-picker |
cherry pick to release-3.0 failed |
* add UnionStmt and ShowStmt as readonly * fix UnionStmt
* add UnionStmt and ShowStmt as readonly * fix UnionStmt
* add UnionStmt and ShowStmt as readonly * fix UnionStmt
* add UnionStmt and ShowStmt as readonly * fix UnionStmt
What problem does this PR solve?
Fix pingcap/tidb#15050.
UNION
statement andSHOW
statement are not treated as readonly statement. These statements are executed again in retrying transactions.What is changed and how it works?
Set
UnionStmt
andShowStmt
as readonly.Check List
Tests
Code changes
Side effects
N/A
Related changes
Release Note
UNION
statement andSHOW
statement as readonly statements.