Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
tangenta committed Jul 7, 2022
1 parent a307caa commit 47ab5e7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ddl/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -490,10 +490,8 @@ func (w *worker) onCreateIndex(d *ddlCtx, t *meta.Meta, job *model.Job, isPK boo

if indexInfo == nil {
if len(hiddenCols) > 0 {
if len(hiddenCols) > 0 {
for _, hiddenCol := range hiddenCols {
initAndAddColumnToTable(tblInfo, hiddenCol)
}
for _, hiddenCol := range hiddenCols {
initAndAddColumnToTable(tblInfo, hiddenCol)
}
}
if err = checkAddColumnTooManyColumns(len(tblInfo.Columns)); err != nil {
Expand Down

0 comments on commit 47ab5e7

Please sign in to comment.