Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions go/vt/sqlparser/ast.go
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,7 @@ const (
ForUpdateStr = " for update"
ShareModeStr = " lock in share mode"
ForUpdateSkipLockedStr = " for update skip locked"
ForUpdateNowaitStr = " for update nowait"
)

// AddOrder adds an order by element
Expand Down
2 changes: 2 additions & 0 deletions go/vt/sqlparser/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,8 @@ var (
input: "select /* for update */ 1 from t for update",
}, {
input: "select /* skip locked */ 1 from t for update skip locked",
}, {
input: "select /* for update nowait */ 1 from t for update nowait",
}, {
input: "select /* lock in share mode */ 1 from t lock in share mode",
}, {
Expand Down
Loading