1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Treat integer values in window definition ORDER BY clauses as constants, not as references to another expression.

FossilOrigin-Name: 7e4809eadfe99ebfd797a7c63501421021a720bbeed9fba81bebf630c58bb791
This commit is contained in:
dan
2019-05-10 14:26:32 +00:00
parent 2ce9b6bcd5
commit 08f6de7f31
5 changed files with 506 additions and 32 deletions

View File

@ -417,6 +417,13 @@ execsql_test 4.8.4 {
) FROM t2 ORDER BY 1, 2;
}
execsql_float_test 4.9 {
SELECT
rank() OVER win AS rank,
cume_dist() OVER win AS cume_dist FROM t1
WINDOW win AS (ORDER BY 1);
}
finish_test