Fix order by

This commit is contained in:
unknown 2004-10-12 07:20:38 +02:00
parent b078da188e
commit 27a19225af
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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;