1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

Add further tests for new window function functionality.

FossilOrigin-Name: 1fbddf01b1c3fff95b05e2f2f709754e2b514296060b4846518791e7161d9ddb
This commit is contained in:
dan
2019-03-18 21:19:40 +00:00
parent 108e6b2c87
commit 0525b6f47f
6 changed files with 30051 additions and 1287 deletions

View File

@ -79,4 +79,11 @@ do_test 1.7 { catch { execsql {
) FROM t1 ORDER BY 1
} } } 1
# PG says ERROR: RANGE with offset PRECEDING/FOLLOWING requires exactly one ORDER BY column
do_test 1.8 { catch { execsql {
SELECT a, sum(b) OVER (
PARTITION BY a RANGE BETWEEN 1 PRECEDING AND 1 FOLLOWING
) FROM t1 ORDER BY 1
} } } 1
finish_test