diff options
author | Michael Widenius <monty@mariadb.org> | 2018-03-09 14:05:35 +0200 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2018-03-29 13:59:44 +0300 |
commit | a7abddeffa6a760ce948c2dfb007cdf3f1a369d5 (patch) | |
tree | 70eb743fa965a17380bbc0ac88ae79ca1075b896 /mysql-test/main/win_orderby.result | |
parent | ab1941266c59a19703a74b5593cf3f508a5752d7 (diff) | |
download | mariadb-git-a7abddeffa6a760ce948c2dfb007cdf3f1a369d5.tar.gz |
Create 'main' test directory and move 't' and 'r' there
Diffstat (limited to 'mysql-test/main/win_orderby.result')
-rw-r--r-- | mysql-test/main/win_orderby.result | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/mysql-test/main/win_orderby.result b/mysql-test/main/win_orderby.result new file mode 100644 index 00000000000..bf4a40a4db3 --- /dev/null +++ b/mysql-test/main/win_orderby.result @@ -0,0 +1,26 @@ +drop table if exists t0,t1; +create table t0(a int primary key); +insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9); +create table t1( +pk int, +a int, +key(pk) +); +insert into t1 +select +A.a + B.a* 10 + C.a * 100, +1 +from t0 A, t0 B, t0 C; +select +pk, +count(a) over (order by pk rows between 2 preceding and 2 following) +from t1 +where pk between 1 and 30 +order by pk desc +limit 4; +pk count(a) over (order by pk rows between 2 preceding and 2 following) +30 3 +29 4 +28 5 +27 5 +drop table t0,t1; |