mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 04:22:27 +01:00
Fix order by
This commit is contained in:
parent
b078da188e
commit
27a19225af
2 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue