mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
fix for commit 1.2368
This commit is contained in:
@@ -386,16 +386,16 @@ t1 CREATE TABLE `t1` (
|
|||||||
drop table t1;
|
drop table t1;
|
||||||
create table t1 (a int not null, b int not null) engine=ndb;
|
create table t1 (a int not null, b int not null) engine=ndb;
|
||||||
insert into t1 values (1, 300), (2, 200), (3, 100);
|
insert into t1 values (1, 300), (2, 200), (3, 100);
|
||||||
select * from t1;
|
select * from t1 order by a;
|
||||||
a b
|
a b
|
||||||
3 100
|
|
||||||
2 200
|
|
||||||
1 300
|
1 300
|
||||||
|
2 200
|
||||||
|
3 100
|
||||||
alter table t1 order by b;
|
alter table t1 order by b;
|
||||||
select * from t1;
|
select * from t1 order by b;
|
||||||
a b
|
a b
|
||||||
1 300
|
|
||||||
2 200
|
|
||||||
3 100
|
3 100
|
||||||
|
2 200
|
||||||
|
1 300
|
||||||
drop table t1;
|
drop table t1;
|
||||||
End of 5.1 tests
|
End of 5.1 tests
|
||||||
|
@@ -431,9 +431,9 @@ drop table t1;
|
|||||||
# alter .. order by
|
# alter .. order by
|
||||||
create table t1 (a int not null, b int not null) engine=ndb;
|
create table t1 (a int not null, b int not null) engine=ndb;
|
||||||
insert into t1 values (1, 300), (2, 200), (3, 100);
|
insert into t1 values (1, 300), (2, 200), (3, 100);
|
||||||
select * from t1;
|
select * from t1 order by a;
|
||||||
alter table t1 order by b;
|
alter table t1 order by b;
|
||||||
select * from t1;
|
select * from t1 order by b;
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
|
||||||
--echo End of 5.1 tests
|
--echo End of 5.1 tests
|
||||||
|
Reference in New Issue
Block a user