Skip to content

Commit

Permalink
ddl: tiny update
Browse files Browse the repository at this point in the history
  • Loading branch information
zimulala committed Nov 28, 2019
1 parent c48a699 commit af40e41
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ddl/db_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -478,15 +478,15 @@ func (s *testIntegrationSuite) TestModifyingColumnOption(c *C) {
tk.MustExec("create table t2 (b char, c int)")
assertErrCode("alter table t2 modify column c int references t1(a)", errMsg)
_, err := tk.Exec("alter table t1 change a a varchar(16)")
c.Assert(err.Error(), Equals, "[ddl:8200]Unsupported modify column: type varchar(16) not match origin int(11)")
c.Assert(err.Error(), Equals, "[ddl:203]unsupported modify column type varchar(16) not match origin int(11)")
_, err = tk.Exec("alter table t1 change a a varchar(10)")
c.Assert(err.Error(), Equals, "[ddl:8200]Unsupported modify column: type varchar(10) not match origin int(11)")
c.Assert(err.Error(), Equals, "[ddl:203]unsupported modify column type varchar(10) not match origin int(11)")
_, err = tk.Exec("alter table t1 change a a datetime")
c.Assert(err.Error(), Equals, "[ddl:8200]Unsupported modify column: type datetime not match origin int(11)")
c.Assert(err.Error(), Equals, "[ddl:203]unsupported modify column type datetime not match origin int(11)")
_, err = tk.Exec("alter table t1 change a a int(11) unsigned")
c.Assert(err.Error(), Equals, "[ddl:8200]Unsupported modify column: can't change unsigned integer to signed or vice versa")
c.Assert(err.Error(), Equals, "[ddl:203]unsupported modify column can't change unsigned integer to signed or vice versa")
_, err = tk.Exec("alter table t2 change b b int(11) unsigned")
c.Assert(err.Error(), Equals, "[ddl:8200]Unsupported modify column: type int(11) not match origin char(1)")
c.Assert(err.Error(), Equals, "[ddl:203]unsupported modify column type int(11) not match origin char(1)")
}

func (s *testIntegrationSuite) TestIndexOnMultipleGeneratedColumn(c *C) {
Expand Down

0 comments on commit af40e41

Please sign in to comment.