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:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user