Skip to content

Commit

Permalink
[parser] Add begin lock syntax for pessimistic transaction. (pingcap#307
Browse files Browse the repository at this point in the history
)
  • Loading branch information
coocood authored and xhebox committed Oct 8, 2021
1 parent f9a3407 commit ebbce71
Show file tree
Hide file tree
Showing 3 changed files with 2,479 additions and 2,464 deletions.
1 change: 1 addition & 0 deletions parser/ast/misc.go
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ func (n *ExecuteStmt) Accept(v Visitor) (Node, bool) {
// See https://dev.mysql.com/doc/refman/5.7/en/commit.html
type BeginStmt struct {
stmtNode
Pessimistic bool
}

// Restore implements Node interface.
Expand Down
Loading

0 comments on commit ebbce71

Please sign in to comment.