Skip to content

Commit

Permalink
fix(mtr): dismatch result on alter_table_v1.test #1670
Browse files Browse the repository at this point in the history
  • Loading branch information
hustjieke authored and mergify[bot] committed May 10, 2023
1 parent 28a948e commit 3665b49
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions mysql-test/suite/tianmu/r/alter_table_v1.result
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,25 @@ insert into t1 (bandID,payoutID) VALUES (1,6),(2,6),(3,4),(4,9),(5,10),(6,1),(7,
alter table t1 add column new_col int, order by payoutid,bandid;
select * from t1;
bandID payoutID new_col
6 1 NULL
3 4 NULL
1 6 NULL
2 6 NULL
4 9 NULL
5 10 NULL
7 12 NULL
8 12 NULL
alter table t1 order by bandid,payoutid;
select * from t1;
bandID payoutID new_col
1 6 NULL
2 6 NULL
3 4 NULL
4 9 NULL
5 10 NULL
6 1 NULL
7 12 NULL
8 12 NULL
drop table t1;
#
# Test of ALTER TABLE ... ORDER BY
Expand All @@ -21,6 +37,10 @@ insert into t1 values(9),(3),(12),(10);
alter table t1 order by n;
select * from t1;
n
3
9
10
12
drop table t1;
#
# Drop and add an auto_increment column
Expand Down

0 comments on commit 3665b49

Please sign in to comment.