Skip to content

Commit

Permalink
engine/parser: support auto_increment
Browse files Browse the repository at this point in the history
  • Loading branch information
rjeczalik committed May 25, 2019
1 parent 817cee5 commit dcdf67c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engine/parser/lexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,8 @@ func (l *lexer) MatchDeleteToken() bool {
}

func (l *lexer) MatchAutoincrementToken() bool {
return l.Match([]byte("autoincrement"), AutoincrementToken)
return l.Match([]byte("auto_increment"), AutoincrementToken) ||
l.Match([]byte("autoincrement"), AutoincrementToken)
}

func (l *lexer) MatchPrimaryToken() bool {
Expand Down

0 comments on commit dcdf67c

Please sign in to comment.