-
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
Support SELECT FOR UPDATE OF TABLES
#28689
Comments
PTAL @sunxiaoguang |
@jackysp thanks for creating this issue. @jackysp @cfzjywxk do you think we should prepare a design doc for this feature? It seems not a "huge" change but may be a significant change since it changes how locks work for TiDB. As the pull request doesn't update parser dependency, I assume that this feature will change how SQL currently with "OF tables" works. Also we may want a clear plan for testing and get this feature general access. What do you think? |
I've updated parser, which didn't support the syntax |
I can write a design document for the pr, which is fine. @tisonkun |
Feature Request
Is your feature request related to a problem? Please describe:
For a multi-table join, a for update stmt locks all tables, some tables may not need to be locked.
Describe the feature you'd like:
Support the
of tables
syntax, which specifies that only some of the tables are locked. See https://dev.mysql.com/doc/refman/8.0/en/select.html for more details.Describe alternatives you've considered:
No.
Teachability, Documentation, Adoption, Migration Strategy:
https://dev.mysql.com/doc/refman/8.0/en/select.html
The text was updated successfully, but these errors were encountered: