Skip to content

Commit

Permalink
parser: Add truncate all support (pingcap#1179)
Browse files Browse the repository at this point in the history
* remove warning
* make parser
  • Loading branch information
AndrewDi authored Mar 14, 2021
1 parent c763ae2 commit c657ece
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions parser.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions parser.y
Original file line number Diff line number Diff line change
Expand Up @@ -1798,8 +1798,6 @@ AlterTableSpec:
}
if $3 == nil {
ret.OnAllPartitions = true
yylex.AppendError(yylex.Errorf("The TRUNCATE PARTITION ALL clause is parsed but ignored by all storage engines."))
parser.lastErrorAsWarn()
} else {
ret.PartitionNames = $3.([]model.CIStr)
}
Expand Down

0 comments on commit c657ece

Please sign in to comment.