Skip to content

Commit

Permalink
gs
Browse files Browse the repository at this point in the history
  • Loading branch information
crazycs520 committed Feb 4, 2020
1 parent dd4cb55 commit df86029
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ddl/column_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,7 @@ func (s *testColumnSuite) TestModifyColumn(c *C) {
)
defer d.Stop()

tblInfo := testTableInfo(c, d, "t", 4)
tblInfo := testTableInfo(c, d, "t", 2)
idx := &model.IndexInfo{
ID: 1,
Name: model.NewCIStr("idx"),
Expand All @@ -965,8 +965,9 @@ func (s *testColumnSuite) TestModifyColumn(c *C) {
{"varchar(10) character set utf8 collate utf8_bin", "varchar(10) character set utf8", nil, tblInfo.Columns[0]},
{"decimal(2,1)", "decimal(3,2)", errUnsupportedModifyColumn.GenWithStackByArgs("can't change decimal column precision with index covered now"), tblInfo.Columns[0]},
{"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)", nil, tblInfo.Columns[1]},
{"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]},
}
for _, tt := range tests {
ftA := s.colDefStrToFieldType(c, tt.origin)
Expand Down

0 comments on commit df86029

Please sign in to comment.