Skip to content

Commit 443ce34

Browse files
Merge pull request #10 from stackql/feature/update-replace-synonym-compact
update-replace-synonym
2 parents ade35cd + e42c15b commit 443ce34

File tree

4 files changed

+3250
-3264
lines changed

4 files changed

+3250
-3264
lines changed

go/vt/sqlparser/ast.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ type (
144144
// Update represents an UPDATE statement.
145145
// If you add fields here, consider adding them to calls to validateUnshardedRoute.
146146
Update struct {
147+
Action string
147148
Comments Comments
148149
Ignore string
149150
TableExprs TableExprs

go/vt/sqlparser/constants.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ const (
3838
// DDL strings.
3939
InsertStr = "insert"
4040
ReplaceStr = "replace"
41+
UpdateStr = "update"
4142

4243
// Set.Scope or Show.Scope
4344
SessionStr = "session"

0 commit comments

Comments
 (0)