Skip to content

Commit

Permalink
This is an automated cherry-pick of pingcap#40631
Browse files Browse the repository at this point in the history
Signed-off-by: ti-chi-bot <[email protected]>
  • Loading branch information
mjonss authored and ti-chi-bot committed Jan 17, 2023
1 parent 5ccc10b commit a4af90a
Show file tree
Hide file tree
Showing 2 changed files with 848 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ddl/column.go
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,10 @@ func (w *worker) onModifyColumn(d *ddlCtx, t *meta.Meta, job *model.Job) (ver in
job.State = model.JobStateCancelled
return ver, errors.Trace(err)
}
if tblInfo.Partition != nil {
job.State = model.JobStateCancelled
return ver, errors.Trace(dbterror.ErrUnsupportedModifyColumn.GenWithStackByArgs("table is partition table"))
}

if jobParam.changingCol == nil {
changingColPos := &ast.ColumnPosition{Tp: ast.ColumnPositionNone}
Expand Down
Loading

0 comments on commit a4af90a

Please sign in to comment.