Update parser.go

This commit is contained in:
Tim Vaillancourt 2022-10-22 04:26:41 +02:00 committed by GitHub
parent 90245c098c
commit aeebaa9ad4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,9 +152,7 @@ func (this *AlterTableParser) ParseAlterStatement(alterStatement string) (err er
}
for _, alterToken := range this.tokenizeAlterStatement(this.alterStatementOptions) {
alterToken = this.sanitizeQuotesFromAlterStatement(alterToken)
if err = this.parseAlterToken(alterToken); err != nil {
return err
}
this.parseAlterToken(alterToken)
this.alterTokens = append(this.alterTokens, alterToken)
}
return nil