Skip to content

Commit

Permalink
planner/core: fix error information when enter incorrect partition na…
Browse files Browse the repository at this point in the history
…me (#45078)

close #44967
  • Loading branch information
River2000i authored Jul 13, 2023
1 parent 12543ec commit 2af9a67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions planner/core/preprocess.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down Expand Up @@ -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
}
}
Expand Down

0 comments on commit 2af9a67

Please sign in to comment.