diff --git a/mysql-test/r/win.result b/mysql-test/r/win.result index 554cd9dcb95..ee1806908d1 100644 --- a/mysql-test/r/win.result +++ b/mysql-test/r/win.result @@ -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; diff --git a/mysql-test/t/win.test b/mysql-test/t/win.test index 043cf8f54fc..2ceace3807d 100644 --- a/mysql-test/t/win.test +++ b/mysql-test/t/win.test @@ -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,'');