Fix problems with "RANGE BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING" window

frames.

FossilOrigin-Name: c34f31dbd79891249ee9485e91f6ea558ee1db62e04fb0fff2c051612b8fa5e7
This commit is contained in:
dan
2018-06-13 20:29:38 +00:00
parent c0bb4459d3
commit 13078caac4
5 changed files with 180 additions and 123 deletions
+6
View File
@@ -239,4 +239,10 @@ do_execsql_test 4.3 {
SELECT abs(max(b) OVER (ORDER BY b)) FROM ttt GROUP BY b;
} {1 2 3}
do_execsql_test 4.4 {
SELECT sum(b) OVER (
ORDER BY a RANGE BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING
) FROM ttt;
} {18 17 15 12 11 9 6 5 3}
finish_test