Commit 27a19225 authored by unknown's avatar unknown

Fix order by

parent b078da18
......@@ -37,14 +37,14 @@ a b c
1 2 3
2 3 5
3 4 6
select tt1.* from t1 as tt1, t1 as tt2 use index(b) where tt1.b = tt2.b order by tt1.c;
select tt1.* from t1 as tt1, t1 as tt2 use index(b) where tt1.b = tt2.b order by tt1.b;
a b c
6 7 2
5 6 2
1 2 3
2 3 5
3 4 6
4 5 8
5 6 2
6 7 2
select a, b, c from t1 where a!=2 and c=6;
a b c
3 4 6
......
......@@ -24,7 +24,7 @@ select * from t1 where b < 4 order by b;
select * from t1 where b <= 4 order by b;
# Test of reset_bounds
select tt1.* from t1 as tt1, t1 as tt2 use index(b) where tt1.b = tt2.b order by tt1.c;
select tt1.* from t1 as tt1, t1 as tt2 use index(b) where tt1.b = tt2.b order by tt1.b;
select a, b, c from t1 where a!=2 and c=6;
select a, b, c from t1 where a!=2 order by a;
......
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