forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: Support SELECT FOR UPDATE SQL syntax
Update the parser to recognize the SELECT ... FOR UPDATE SQL syntax. Update the SQL layer so scan nodes in the query plan are flagged as lockForUpdate if the SELECT ... FOR UPDATE syntax is used. If a scan node with lockForUpdate is encountered during plan execution, return an error so the user knows that SELECT ... FOR UPDATE is not yet fully supported. This is the first of several commits/PRs needed to support SELECT ... FOR UPDATE. Future commits will implement the changes required at the KV layer, connect the two layers with changes to the KV api, and eliminate the temporary error message introduced in this commit. See PR cockroachdb#19577 for the RFC, and Issue cockroachdb#6583.
- Loading branch information
Showing
26 changed files
with
7,177 additions
and
6,963 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.