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

Prevent aliases of window functions expressions from being used as arguments to aggregate or other window functions.

FossilOrigin-Name: 1e16d3e8fc60d39ca3899759ff15d355fdd7d3e23b325d8d2b0f954e11ce8dce
This commit is contained in:
dan
2019-03-28 16:15:05 +00:00
parent 6f1644c0f9
commit 4ded26a53c
6 changed files with 47 additions and 16 deletions

View File

@ -47,6 +47,14 @@ foreach {tn frame} {
) FROM t1 ORDER BY 1
"
}
errorsql_test 2.1 {
SELECT sum( sum(a) OVER () ) FROM t1;
}
errorsql_test 2.2 {
SELECT sum(a) OVER () AS xyz FROM t1 ORDER BY sum(xyz);
}
finish_test