mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-12 13:01:09 +03:00
More details in the header comment of pushDownWhereTerms(). No changes to
code. FossilOrigin-Name: 928486231ff7cc0df17a5aa23a080a1b8720e168db5227a7dbd34861283ba689
This commit is contained in:
@@ -3831,7 +3831,11 @@ static int flattenSubquery(
|
||||
**
|
||||
** (1) (** This restriction was removed on 2017-09-29. We used to
|
||||
** disallow this optimization for aggregate subqueries, but now
|
||||
** it is allowed by putting the extra terms on the HAVING clause **)
|
||||
** it is allowed by putting the extra terms on the HAVING clause.
|
||||
** The added HAVING clause is pointless if the subquery lacks
|
||||
** a GROUP BY clause. But such a HAVING clause is also harmless
|
||||
** so there does not appear to be any reason to add extra logic
|
||||
** to suppress it. **)
|
||||
**
|
||||
** (2) The inner query is the recursive part of a common table expression.
|
||||
**
|
||||
|
||||
Reference in New Issue
Block a user