Skip to content

Commit

Permalink
refine test
Browse files Browse the repository at this point in the history
  • Loading branch information
crazycs520 committed Feb 4, 2020
1 parent df86029 commit e0d6d0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ddl/column_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@ func (s *testColumnSuite) TestModifyColumn(c *C) {
Name: model.NewCIStr("idx"),
Columns: []*model.IndexColumn{
{
Name: tblInfo.Columns[0].Name,
Name: tblInfo.Columns[0].Name, // column[0] has index covered.
},
},
}
Expand All @@ -967,7 +967,7 @@ func (s *testColumnSuite) TestModifyColumn(c *C) {
{"decimal(2,1)", "decimal(2,2)", errUnsupportedModifyColumn.GenWithStackByArgs("can't change decimal column precision with index covered now"), tblInfo.Columns[0]},
{"decimal(2,1)", "decimal(2,2)", errUnsupportedModifyColumn.GenWithStackByArgs("modify original decimal(2,1) to decimal(2,2) may cause out of range value error"), tblInfo.Columns[1]},
{"decimal(2,1)", "decimal(2,1)", nil, tblInfo.Columns[0]},
{"decimal(2,1)", "decimal(3,1)", nil, tblInfo.Columns[1]},
{"decimal(2,1)", "decimal(3,1)", nil, tblInfo.Columns[1]}, // column[1] doesn't have index covered.
}
for _, tt := range tests {
ftA := s.colDefStrToFieldType(c, tt.origin)
Expand Down

0 comments on commit e0d6d0e

Please sign in to comment.