Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
topecongiro committed Jun 13, 2022
1 parent e9a891f commit f65f406
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions spanner/spansql/parser.go
Expand Up @@ -1523,19 +1523,16 @@ func (p *parser) parseDMLStmt() (DMLStmt, *parseError) {
var input ValuesOrSelect
if p.eat("VALUES") {
values := make([][]Expr, 0)
if exprs, err := p.parseParenExprList(); err != nil {
return nil, err
} else {
values = append(values, exprs)
}
for p.eat(",") {
for {
exprs, err := p.parseParenExprList()
if err != nil {
return nil, err
}
values = append(values, exprs)
if !p.eat(",") {
break
}
}

input = Values(values)
} else {
input, err = p.parseSelect()
Expand Down

0 comments on commit f65f406

Please sign in to comment.