Commit 27a19225 authored by unknown's avatar unknown
Browse files

Fix order by

parent b078da18
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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;