Skip to content

Commit

Permalink
minor tweaks
Browse files Browse the repository at this point in the history
Signed-off-by: Andres Taylor <[email protected]>
Signed-off-by: Florent Poinsard <[email protected]>
  • Loading branch information
systay authored and harshit-gangal committed Jan 9, 2025
1 parent 258d329 commit e9b7d2d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 5 additions & 2 deletions go/vt/sqlparser/ast.go
Original file line number Diff line number Diff line change
Expand Up @@ -3579,11 +3579,14 @@ type Limit struct {
// Values represents a VALUES clause.
type Values []ValTuple

// ValuesStatement represents a VALUES statement, as in VALUES ROW(1, 2), ROW(3, 4)
type ValuesStatement struct {
// One but not both of these fields can be set.
Rows Values
ListArg ListArg
Order OrderBy
Limit *Limit

Order OrderBy
Limit *Limit
}

// UpdateExprs represents a list of update expressions.
Expand Down
2 changes: 0 additions & 2 deletions go/vt/sqlparser/parsed_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ func (pq *ParsedQuery) GenerateQuery(bindVariables map[string]*querypb.BindVaria
return buf.String(), nil
}

// values row(::val)
// values row(), row(), row()
// Append appends the generated query to the provided buffer.
func (pq *ParsedQuery) Append(buf *strings.Builder, bindVariables map[string]*querypb.BindVariable, extras map[string]Encodable) error {
current := 0
Expand Down

0 comments on commit e9b7d2d

Please sign in to comment.