Skip to content

Commit 733b9aa

Browse files
committed
Change signature of parseInsert
1 parent 4c236b1 commit 733b9aa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

parser.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5004,7 +5004,7 @@ func (p *Parser) parseDML(nested bool) (dml ast.DML) {
50045004
pos := id.Pos
50055005
switch {
50065006
case id.IsKeywordLike("INSERT"):
5007-
return p.parseInsert(nested, pos)
5007+
return p.parseInsert(pos, nested)
50085008
case id.IsKeywordLike("DELETE"):
50095009
return p.parseDelete(pos)
50105010
case id.IsKeywordLike("UPDATE"):
@@ -5047,7 +5047,7 @@ func (p *Parser) tryParseThenReturn() *ast.ThenReturn {
50475047
}
50485048
}
50495049

5050-
func (p *Parser) parseInsert(nested bool, pos token.Pos) *ast.Insert {
5050+
func (p *Parser) parseInsert(pos token.Pos, nested bool) *ast.Insert {
50515051
var insertOrType ast.InsertOrType
50525052
if p.Token.Kind == "OR" {
50535053
p.nextToken()

0 commit comments

Comments
 (0)