Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
d29e1472
Commit
d29e1472
authored
Apr 15, 2016
by
Sergei Petrunia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make test result deterministic.
parent
bc6df8d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
mysql-test/r/win.result
mysql-test/r/win.result
+8
-8
mysql-test/t/win.test
mysql-test/t/win.test
+2
-2
No files found.
mysql-test/r/win.result
View file @
d29e1472
...
...
@@ -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;
mysql-test/t/win.test
View file @
d29e1472
...
...
@@ -1171,8 +1171,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
,
''
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment