aboutsummaryrefslogtreecommitdiff
path: root/test/aggnested.test
AgeCommit message (Collapse)AuthorLines
2026-07-18Disqualify the count-of-view optimization if the view is reallydrh-2/+34
a correlated subquery. [forum:/info/2026-07-18T10:23:43Z|Forum post 2026-07-18T10:23:43Z]. FossilOrigin-Name: bb65c3adcd79581715f90d287807a3f03b375f69957c7d0202d31b23cf627da0
2023-12-16New test case based on Chromium bug report 1511689.drh-1/+11
FossilOrigin-Name: 2c7ef4b4d215f99f8d6787adb64e2037ae96e5dd6cb49c8b81634249f5e1b328
2023-11-14Fix another obscure problem with nested aggregates. dbsqlfuzz 04408efc51.dan-0/+58
FossilOrigin-Name: 6f9eed826f5b3d1cb08402925b406a7fe9b54259af1ba5eba92d4d37fbad628a
2023-11-02Fix a spurious "misuse of aggregate function" error that could occur when an ↵dan-0/+54
aggregate function was used within the FROM clause of a sub-select of the select that owns the aggregate. e.g. "SELECT (SELECT x FROM (SELECT sum(t1.a) AS x)) FROM t1". [forum:/forumpost/c9970a37ed | Forum post c9970a37ed]. FossilOrigin-Name: 4470f657d2069972d02a00983252dec1f814d90c0d8d0906e320e955111e8c11
2023-10-20Add string_agg(X,Y) as an alias for group_concat(X,Y), for compatibilitydrh-4/+4
with SQLServer and PG. FossilOrigin-Name: b91c19bf2680f60d7826ab5d9e7902e2dc2a55d847bbea565a6489d47f2cc8f1
2022-04-11New test cases added.drh-0/+11
FossilOrigin-Name: bdd1499c0fa4f8aadf4857a0ccc0d839c250369f29766ebef80330964905e63b
2021-07-20Avoid a malfunction that could occur if the same correlated column reference ↵dan-0/+42
appears in both the GROUP BY and the HAVING clause of a sub-select. dbsqlfuzz a779227f721a834df95f4f42d0c31550a1f8b8a2. FossilOrigin-Name: 1e35cc6d5c2f563c6bb163bb150d7bc6ede4c993efa828af1face3261bf65a2c
2020-06-09Ensure that aggregate functions that (a) are part of SELECT statements with ↵dan-0/+47
no FROM clause and (b) have one or more scalar sub-selects as arguments are assigned to the correct aggregate context. FossilOrigin-Name: 16a41fa8c4c74bba4e908a9c19e6cf5a927cac140e2070c9abf303158be7257b
2019-08-31Improvements to the algorithm that determines which SELECT in a sequencedrh-1/+29
of nested SELECT statements that an aggregate function belongs to. This resolves an issue identified by dbsqlfuzz. FossilOrigin-Name: d768007473f4ed40abbdf2c7e501b580b1cc37c1620c7cb90af1f208a8c35145
2018-06-05Calculate non-aggregate expressions in the SELECT list of an aggregate querydan-1/+1
that does not use min() or max() once per group, instead of once per row visited. FossilOrigin-Name: dce2dfbe1590deb3ef5661230ae2d232bd492441195defbf698ac56f9629211c
2014-09-15Do not flatten aggregate subqueries that contain min() or max() functionsdrh-1/+7
so that if the min()/max() are discarded by the outer query, they still function and cause non-aggregate expression to be evaluated on the minimal or maximal row. FossilOrigin-Name: 0bdf1a086b3946722f4d4b328e25917f61c14713
2012-11-02Adding test cases for ticket [bfbf38e5e9956a]drh-0/+160
FossilOrigin-Name: 62ebfa747635a5593759ea2a28166d054c8eee8a
2012-08-23Add test cases and fix bugs associated with the previous check-indrh-0/+33
enhancements to nested aggregate subquery processing. FossilOrigin-Name: 00b1dc71be4c3420730b5f7840af824ea86165e7
2012-08-23Further improvements to the processing of nested aggregate queries.drh-0/+38
FossilOrigin-Name: 3c3ffa901f5ce8a523028ff15563ce3e0f55a641