@@ -456,7 +456,7 @@ var AlterTableScripts = []ScriptTest{
456456 Assertions : []ScriptTestAssertion {
457457 {
458458 Query : "ALTER TABLE t40 MODIFY COLUMN pk int" ,
459- Expected : []sql.Row {{types .NewOkResult (0 )}},
459+ Expected : []sql.Row {{types .NewOkResult (3 )}},
460460 },
461461 {
462462 Query : "describe t40" ,
@@ -1091,7 +1091,7 @@ var AlterTableScripts = []ScriptTest{
10911091 Assertions : []ScriptTestAssertion {
10921092 {
10931093 Query : `alter table t modify column c1 int unsigned` ,
1094- Expected : []sql.Row {{types .NewOkResult (0 )}},
1094+ Expected : []sql.Row {{types .NewOkResult (1 )}},
10951095 },
10961096 {
10971097 Query : "describe t;" ,
@@ -1156,7 +1156,7 @@ var AlterTableScripts = []ScriptTest{
11561156 {
11571157 Query : "alter table t modify column e enum('c', 'a', 'b');" ,
11581158 Expected : []sql.Row {
1159- {types .NewOkResult (0 )},
1159+ {types .NewOkResult (4 )},
11601160 },
11611161 },
11621162 {
@@ -1171,7 +1171,7 @@ var AlterTableScripts = []ScriptTest{
11711171 {
11721172 Query : "alter table t modify column e enum('asdf', 'a', 'b', 'c');" ,
11731173 Expected : []sql.Row {
1174- {types .NewOkResult (0 )},
1174+ {types .NewOkResult (4 )},
11751175 },
11761176 },
11771177 {
@@ -1186,7 +1186,7 @@ var AlterTableScripts = []ScriptTest{
11861186 {
11871187 Query : "alter table t modify column e enum('asdf', 'a', 'b', 'c', 'd');" ,
11881188 Expected : []sql.Row {
1189- {types .NewOkResult (0 )},
1189+ {types .NewOkResult (4 )},
11901190 },
11911191 },
11921192 {
@@ -1201,7 +1201,7 @@ var AlterTableScripts = []ScriptTest{
12011201 {
12021202 Query : "alter table t modify column e enum('a', 'b', 'c');" ,
12031203 Expected : []sql.Row {
1204- {types .NewOkResult (0 )},
1204+ {types .NewOkResult (4 )},
12051205 },
12061206 },
12071207 {
@@ -1244,7 +1244,7 @@ var AlterTableScripts = []ScriptTest{
12441244 {
12451245 Query : "alter table t modify column s set('a', 'b', 'c', 'd');" ,
12461246 Expected : []sql.Row {
1247- {types .NewOkResult (0 )},
1247+ {types .NewOkResult (8 )},
12481248 },
12491249 },
12501250 {
@@ -2166,7 +2166,7 @@ var ModifyColumnScripts = []ScriptTest{
21662166 Assertions : []ScriptTestAssertion {
21672167 {
21682168 Query : "ALTER TABLE mytable MODIFY COLUMN i bigint NOT NULL COMMENT 'modified'" ,
2169- Expected : []sql.Row {{types .NewOkResult (0 )}},
2169+ Expected : []sql.Row {{types .NewOkResult (3 )}},
21702170 },
21712171 {
21722172 Query : "SHOW FULL COLUMNS FROM mytable /* 1 */" ,
@@ -2177,7 +2177,7 @@ var ModifyColumnScripts = []ScriptTest{
21772177 },
21782178 {
21792179 Query : "ALTER TABLE mytable MODIFY COLUMN i TINYINT NOT NULL COMMENT 'yes' AFTER s" ,
2180- Expected : []sql.Row {{types .NewOkResult (0 )}},
2180+ Expected : []sql.Row {{types .NewOkResult (3 )}},
21812181 },
21822182 {
21832183 Query : "SHOW FULL COLUMNS FROM mytable /* 2 */" ,
@@ -2188,7 +2188,7 @@ var ModifyColumnScripts = []ScriptTest{
21882188 },
21892189 {
21902190 Query : "ALTER TABLE mytable MODIFY COLUMN i BIGINT NOT NULL COMMENT 'ok' FIRST" ,
2191- Expected : []sql.Row {{types .NewOkResult (0 )}},
2191+ Expected : []sql.Row {{types .NewOkResult (3 )}},
21922192 },
21932193 {
21942194 Query : "SHOW FULL COLUMNS FROM mytable /* 3 */" ,
@@ -2199,7 +2199,7 @@ var ModifyColumnScripts = []ScriptTest{
21992199 },
22002200 {
22012201 Query : "ALTER TABLE mytable MODIFY COLUMN s VARCHAR(20) NULL COMMENT 'changed'" ,
2202- Expected : []sql.Row {{types .NewOkResult (0 )}},
2202+ Expected : []sql.Row {{types .NewOkResult (3 )}},
22032203 },
22042204 {
22052205 Query : "SHOW FULL COLUMNS FROM mytable /* 4 */" ,
@@ -2216,7 +2216,7 @@ var ModifyColumnScripts = []ScriptTest{
22162216 Assertions : []ScriptTestAssertion {
22172217 {
22182218 Query : "ALTER TABLE mytable MODIFY i BIGINT auto_increment" ,
2219- Expected : []sql.Row {{types .NewOkResult (0 )}},
2219+ Expected : []sql.Row {{types .NewOkResult (3 )}},
22202220 },
22212221 {
22222222 Query : "SHOW FULL COLUMNS FROM mytable /* 1 */" ,
@@ -2249,7 +2249,7 @@ var ModifyColumnScripts = []ScriptTest{
22492249 },
22502250 {
22512251 Query : "ALTER TABLE mytable MODIFY COLUMN i BIGINT NOT NULL COMMENT 'ok' FIRST" ,
2252- Expected : []sql.Row {{types .NewOkResult (0 )}},
2252+ Expected : []sql.Row {{types .NewOkResult (4 )}},
22532253 },
22542254 {
22552255 Query : "SHOW FULL COLUMNS FROM mytable /* 3 */" ,
@@ -2261,7 +2261,7 @@ var ModifyColumnScripts = []ScriptTest{
22612261 },
22622262 {
22632263 Query : "ALTER TABLE mytable MODIFY COLUMN s VARCHAR(20) NULL COMMENT 'changed'" ,
2264- Expected : []sql.Row {{types .NewOkResult (0 )}},
2264+ Expected : []sql.Row {{types .NewOkResult (4 )}},
22652265 },
22662266 {
22672267 Query : "SHOW FULL COLUMNS FROM mytable /* 4 */" ,
0 commit comments