Skip to content

Commit

Permalink
hotfix create view ddl (pingcap#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
ystaticy authored Dec 29, 2022
1 parent 9858410 commit a24d8ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ddl/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ func onCreateView(d *ddlCtx, t *meta.Meta, job *model.Job) (ver int64, _ error)
if oldTbInfoID > 0 && orReplace {
err = t.DropTableOrView(schemaID, oldTbInfoID)
if err != nil {
job.State = model.JobStateCancelled
return ver, errors.Trace(err)
}
err = t.GetAutoIDAccessors(schemaID, oldTbInfoID).Del()
Expand Down

0 comments on commit a24d8ac

Please sign in to comment.