mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Allow aggregate sub-selects within ORDER BY and PARTITION BY clauses of window frame definitions.
FossilOrigin-Name: 3daab94977af5e8a95690acc555540311403d890a3261a9757c633fcaaf428a9
This commit is contained in:
@ -6511,7 +6511,6 @@ do_execsql_test 8.3 {
|
||||
) FROM tx;
|
||||
} {2 6 12 1 4 9}
|
||||
|
||||
breakpoint
|
||||
do_execsql_test 8.4 {
|
||||
WITH map2 AS (
|
||||
SELECT * FROM map
|
||||
@ -6524,4 +6523,21 @@ do_execsql_test 8.4 {
|
||||
);
|
||||
} {2 6 12 1 4 9}
|
||||
|
||||
#==========================================================================
|
||||
|
||||
do_execsql_test 9.1 {
|
||||
DROP TABLE IF EXISTS t1;
|
||||
DROP TABLE IF EXISTS t2;
|
||||
CREATE TABLE t1(a INTEGER);
|
||||
CREATE TABLE t2(y INTEGER);
|
||||
} {}
|
||||
|
||||
do_execsql_test 9.2 {
|
||||
SELECT (
|
||||
SELECT max(a) OVER ( ORDER BY (SELECT sum(a) FROM t1) )
|
||||
+ min(a) OVER()
|
||||
)
|
||||
FROM t1
|
||||
} {}
|
||||
|
||||
finish_test
|
||||
|
Reference in New Issue
Block a user