diff --git a/planner/core/preprocess.go b/planner/core/preprocess.go index 85eaae80e0041..4f76b2158bfaf 100644 --- a/planner/core/preprocess.go +++ b/planner/core/preprocess.go @@ -939,7 +939,7 @@ func (p *preprocessor) checkCreateTableGrammar(stmt *ast.CreateTableStmt) { for _, def := range stmt.Partition.Definitions { pName := def.Name.String() if isIncorrectName(pName) { - p.err = dbterror.ErrWrongPartitionName.GenWithStackByArgs(pName) + p.err = dbterror.ErrWrongPartitionName.GenWithStackByArgs() return } } @@ -1226,7 +1226,7 @@ func (p *preprocessor) checkAlterTableGrammar(stmt *ast.AlterTableStmt) { for _, def := range spec.PartDefinitions { pName := def.Name.String() if isIncorrectName(pName) { - p.err = dbterror.ErrWrongPartitionName.GenWithStackByArgs(pName) + p.err = dbterror.ErrWrongPartitionName.GenWithStackByArgs() return } }