Commit e371dcb6 authored by unknown's avatar unknown

fixed order by in test

parent 843e9e65
...@@ -246,17 +246,17 @@ PARTITION BY RANGE(f1) ...@@ -246,17 +246,17 @@ PARTITION BY RANGE(f1)
PARTITION part2 VALUES LESS THAN (1000)); PARTITION part2 VALUES LESS THAN (1000));
INSERT INTO t1 VALUES(1, '---1---'); INSERT INTO t1 VALUES(1, '---1---');
INSERT INTO t1 VALUES(2, '---2---'); INSERT INTO t1 VALUES(2, '---2---');
select * from t1; select * from t1 order by f1;
f1 f2 f1 f2
1 ---1--- 1 ---1---
2 ---2--- 2 ---2---
UPDATE t1 SET f1 = f1 + 4 WHERE f1 = 2; UPDATE t1 SET f1 = f1 + 4 WHERE f1 = 2;
select * from t1; select * from t1 order by f1;
f1 f2 f1 f2
1 ---1--- 1 ---1---
6 ---2--- 6 ---2---
UPDATE t1 SET f1 = f1 + 4 WHERE f1 = 1; UPDATE t1 SET f1 = f1 + 4 WHERE f1 = 1;
select * from t1; select * from t1 order by f1;
f1 f2 f1 f2
5 ---1--- 5 ---1---
6 ---2--- 6 ---2---
......
...@@ -252,9 +252,9 @@ PARTITION BY RANGE(f1) ...@@ -252,9 +252,9 @@ PARTITION BY RANGE(f1)
PARTITION part2 VALUES LESS THAN (1000)); PARTITION part2 VALUES LESS THAN (1000));
INSERT INTO t1 VALUES(1, '---1---'); INSERT INTO t1 VALUES(1, '---1---');
INSERT INTO t1 VALUES(2, '---2---'); INSERT INTO t1 VALUES(2, '---2---');
select * from t1; select * from t1 order by f1;
UPDATE t1 SET f1 = f1 + 4 WHERE f1 = 2; UPDATE t1 SET f1 = f1 + 4 WHERE f1 = 2;
select * from t1; select * from t1 order by f1;
UPDATE t1 SET f1 = f1 + 4 WHERE f1 = 1; UPDATE t1 SET f1 = f1 + 4 WHERE f1 = 1;
select * from t1; select * from t1 order by f1;
drop table t1; drop table t1;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment