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 4504bc3 commit dc95f59
Show file tree
Hide file tree
Showing 2 changed files with 808 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 @@ -844,6 +844,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 modifyInfo.changingCol == nil {
changingColPos := &ast.ColumnPosition{Tp: ast.ColumnPositionNone}
Expand Down
Loading

0 comments on commit dc95f59

Please sign in to comment.