From c86e1e5e24d781ff264c2e8dcfa6a28855b822d2 Mon Sep 17 00:00:00 2001 From: Lynn Date: Thu, 28 Nov 2019 12:27:38 +0800 Subject: [PATCH] ddl: tiny update --- ddl/db_integration_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ddl/db_integration_test.go b/ddl/db_integration_test.go index deb255833380a..5fe8f5363571e 100644 --- a/ddl/db_integration_test.go +++ b/ddl/db_integration_test.go @@ -822,15 +822,15 @@ func (s *testIntegrationSuite5) 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 *testIntegrationSuite1) TestIndexOnMultipleGeneratedColumn(c *C) {