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

Fix another issue to do with window-functions in aggregate queries.

FossilOrigin-Name: 6413e38a174044c28fa9b8b937e6c972d144547a246e6f2882e782538300d042
This commit is contained in:
dan
2018-06-12 20:53:38 +00:00
parent 7392569f5e
commit c0bb4459d3
6 changed files with 100 additions and 32 deletions

View File

@ -231,4 +231,12 @@ do_execsql_test 4.1 {
SELECT max(c), max(b) OVER (ORDER BY b) FROM ttt GROUP BY b;
} {3 1 4 2 5 3}
do_execsql_test 4.2 {
SELECT max(b) OVER (ORDER BY max(c)) FROM ttt GROUP BY b;
} {1 2 3}
do_execsql_test 4.3 {
SELECT abs(max(b) OVER (ORDER BY b)) FROM ttt GROUP BY b;
} {1 2 3}
finish_test