mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
Make test result deterministic.
This commit is contained in:
@@ -1923,8 +1923,8 @@ drop table t1;
|
||||
create table t1 (s1 int, s2 char(5));
|
||||
insert into t1 values (1,'a');
|
||||
insert into t1 values (null,null);
|
||||
insert into t1 values (1,null);
|
||||
insert into t1 values (null,'a');
|
||||
insert into t1 values (3,null);
|
||||
insert into t1 values (4,'a');
|
||||
insert into t1 values (2,'b');
|
||||
insert into t1 values (-1,'');
|
||||
select
|
||||
@@ -1933,10 +1933,10 @@ ROW_NUMBER() OVER (order by s1),
|
||||
CUME_DIST() OVER (order by -s1)
|
||||
from t1;
|
||||
s1 s2 ROW_NUMBER() OVER (order by s1) CUME_DIST() OVER (order by -s1)
|
||||
1 a 4 0.8333333333
|
||||
NULL NULL 1 0.3333333333
|
||||
1 NULL 5 0.8333333333
|
||||
NULL a 2 0.3333333333
|
||||
2 b 6 0.5000000000
|
||||
-1 3 1.0000000000
|
||||
1 a 3 0.8333333333
|
||||
NULL NULL 1 0.1666666667
|
||||
3 NULL 5 0.5000000000
|
||||
4 a 6 0.3333333333
|
||||
2 b 4 0.6666666667
|
||||
-1 2 1.0000000000
|
||||
drop table t1;
|
||||
|
Reference in New Issue
Block a user